How to turn my Live USB to Persistence Live USB?
Solution 1:
Turn Live USB into Persistence Live USB?
You can not use a FAT32 partition for persistence, for this you need ext2, ext3 or ext4. You can however add a persistence file named writable
to a FAT32 partition, but it will be limited to 4GB. A second persistence file named home-rw
can also be added for a total of 8GB.
For a persistent partition:
-
Boot the USB using the
toram
option*. -
Unplug then replug the USB drive.
-
Open GParted and create a second ext4 partition and label it either
writable
orcasper-rw
. -
Open the system partition and edit /boot/grub/grub.cfg adding a space and the word
persistent
to the end of the first menuentry right after ---.
If system partition is not editable, ie if it's ISO9660, or an ISO file, you may need to enable persistence each boot, (similar to using toram).
If you decide to use persistence files:
sudo dd if=/dev/zero of=casper-rw bs=1M count=512
sudo mkfs.ext4 -F casper-rw
- (Replace 512 with the "size in MB" you require, max 4000)
- For Ubuntu 20.04 and later replace
casper-rw
withwritable
- For a
home-rw
partition replacecasper-rw
withhome-rw
Booting toram
After turning on the computer, press Shift
.
If it boots BIOS mode a language screen will come up, press Esc
. Press F6
then press Esc
again. At the bottom of the screen type a space and toram
.
If the computer boots to a GRUB menu, type the letter e
next to the first menu item. Go down to the line that starts with linux
and at the end of it after ---, type a space and toram
. Press F10
to boot.