I have installed Ubuntu 14.04.3 to a 16GB pendrive so as to obtain a Live OS that stores persistent data on an ext4 partition. I followed the instructions on various tutorials and answers, recently on this: How do I get a live-USB to use a partition for persistence?
Everything works fine except persistence.
This is what I did:
- Boot from a live Ubuntu on USB (here: USB2) without a persistent file.
- Insert another USB (here: USB1), open gparted, unmount and delete all partitions.
- Select "unallocated" and create two partitions:
sdc1: 1 - 2170 - auto - MiB // Primary Partition - fat32 - OS
sdc2: 0 - auto - 0 - MiB // Primary Partition - ext4 - casper-rw - Extract USB1 and then insert it in a Windows machine. Install Ubuntu on OS using "UNETBOOTIN" (but I've also used "Universal USB Installer", no difference later on) and set a 10 MiB persistent file.
- Delete casper-rw under Windows (but I've also done it under Ubuntu).
- Boot Ubuntu from USB2, insert USB1, open GParted and Right Click on the fat32 partition (OS 2.10 GiB), select Manage Flags and check "Boot" and "lba" ("Boot" is already checked; checking "lba" does not seem to change the situation later on).
The "casper-rw" is now larger than 4GB (12.81 GiB), but persistence does not work. - Modify the file "txt.cfg" as reported here below.
But even so persistence does not work. Can someone help? Many thanks in advance.
default live
label live
menu label ^Try Ubuntu without installing
kernel /casper/vmlinuz.efi
append file=/cdrom/preseed/ubuntu.seed boot=casper cdrom-detect/try-usb=true persistent noprompt floppy.allowed_drive_mask=0 ignore_uuid initrd=/casper/initrd.lz quiet splash --
label live-install
menu label ^Install Ubuntu
kernel /casper/vmlinuz.efi
append file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity cdrom-detect/try-usb=true persistent noprompt floppy.allowed_drive_mask=0 ignore_uuid initrd=/casper/initrd.lz quiet splash --
label check
menu label ^Check disc for defects
kernel /casper/vmlinuz.efi
append boot=casper integrity-check cdrom-detect/try-usb=true persistent noprompt floppy.allowed_drive_mask=0 ignore_uuid initrd=/casper/initrd.lz quiet splash --
label memtest
menu label Test ^memory
kernel /install/mt86plus
label hd
menu label ^Boot from first hard disk
localboot 0x80