[Tutorial] Live usb with persistence over 4GB

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
User avatar
Laurent85
Level 12
Level 12
Posts: 4402
Joined: Tue May 26, 2015 10:11 am
Location: Vendée, France

[Tutorial] Live usb with persistence over 4GB

Postby Laurent85 » Sat Sep 03, 2016 6:00 pm

Thanks to phd21 who suggested Multisystem as a working alternative.

Follow this tutorial to create a Live usb flash drive with persistence on a separate partition, allowing persistence over the 4GB FAT32 file size limit.

Benefits of persistence and separate partition over full installation:
  • persistence not limited to 4GB (on par with full installation)
  • compressed Live image, the gain is around 2,6GB disk space, allowing the use of a 8GiB usb flash drive
  • non persistent Live session still available, can be handy in some situations
  • read only base image, persistence can be reset without reinstalling, boot in Live session mode to backup your /home data and personal settings, then reformat casper-rw.

Install Multisystem:

Code: Select all

sudo apt-add-repository 'deb http://liveusb.info/multisystem/depot all main'
wget -q -O - http://liveusb.info/multisystem/depot/multisystem.asc | sudo apt-key add -
apt update
apt install multisystem


Usb flash drive partitionning, using gparted create:
  • a 2GB FAT32 partition for Multisystem and Linux Mint iso image. Multisystem can offer to boot any iso image, so you are free to decide a larger FAT32 partition to install more iso images.
  • an ext2 partition labelled casper-rw lowercase for persistence. ext2 filesystem is fast and has lower workload over ext4, so should be sufficient for such usage. You can format to ext4 if you prefer.
img1.png


Create Live usb with persistence:
  • insert the usb flash drive, Linux Mint should mount available partitions automatically. If you configured Linux Mint to handle removeable drives differently then mount the FAT32 partition (click on said partition).
  • launch Multisystem and select usb flash drive partition to use. On first launch Multisystem will initialize the partition, follow the steps suggested regarding the label and grub.
  • from main screen install Linux Mint iso image
  • click the eye icon to make appear advanced options
  • left click linuxmint-18-cinnamon-64bit.iso, then press the pen icon to edit boot options.
    img2.png

    Left click iso image entry and enter option persistent, press Backup button to save boot options.
    img3.png

    Note that for an unknown reason when returning to boot options persistent does not appear but was properly saved.

    You can check if necessary:
    select Menus tab > GRUB settings > grub.cfg > search for word persistent
    Should appear line starting with linux (loop)/casper/vmlinuz persistent...

Done.

Tips:
To launch a Live session from flash drive, on startup from Multisystem screen edit Linux Mint entry and remove persistent parameter.

Nemo automatically mounts casper-rw partition. When persistence in use, casper-rw should not be considered as a removeable media, hence not mounted as is. You can change this behavior in Nemo Preferences > Behavior > unselect Automatically mount removable media.

Use Multisystem to create multi boot usb flash drives.

Multisystem also offers to enable persistence by creating a casper-rw file container up to 4GB on the FAT32 partition.
Image
H: Pedro, est-ce le chant du fufu ou l'odeur du poivrier,
H: Je me sens une autre femme ?
P: Honorine, viens sous les palétuviers.
H: Sous les palétuviers ? Oh ! Vous en avez de ces mots.

User avatar
Spearmint2
Level 13
Level 13
Posts: 4797
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: [Tutorial] Live usb with persistence over 4GB

Postby Spearmint2 » Sun Nov 27, 2016 5:49 am

persistent partitions quit working after 17.2 unless someone fixes a bug in the newest casper which is in 17.3, where you can ONLY use a persistent file and limited to 4GB.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 3 guests