I made a live USB for Ubuntu 17.04 using MKUSB from this tutorial here: How to make a persistent live Ubuntu USB with more than 4GB
But I am unable to get the persistent storage to work for me. The live USB has been created successfully and it boots perfectly fine but it looses all my files on reboot.
I tried adding the word "persistent" to every line with "linux" in the boot.cfg and loopback.cfg files.
Edit: I used a 16GB USB to make the Live USB. Though I found out one thing, if while booting I edit the boot commands from grub to add a 'persistent' keyword, persistence works just fine. If I do not, it doesn't. Hence I have to manually edit the command everytime I have to boot into Ubuntu Live.
Here's what my loopback.cfg file looks like before I edit for persistence.
menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=${iso_path} quiet splash persistent --
initrd /casper/initrd.lz
}
menuentry "Install Ubuntu" {
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity iso-scan/filename=${iso_path} quiet splash persistent --
initrd /casper/initrd.lz
}
menuentry "Check disc for defects" {
linux /casper/vmlinuz.efi boot=casper integrity-check iso-scan/filename=${iso_path} quiet splash ---
initrd /casper/initrd.lz
}
menuentry "Test memory" {
linux16 /install/mt86plus
}
Here's what I edit to make persistence work.
menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper iso-scan/filename=${iso_path} quiet splash persistent --
initrd /casper/initrd.lz
}
menuentry "Install Ubuntu" {
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity iso-scan/filename=${iso_path} quiet splash persistent --
initrd /casper/initrd.lz
}
menuentry "Check disc for defects" {
linux /casper/vmlinuz.efi boot=casper integrity-check iso-scan/filename=${iso_path} quiet splash persistent --
initrd /casper/initrd.lz
}
menuentry "Test memory" {
linux16 /install/mt86plus
}
I have to manually edit it everytime I boot because the changes I make to the file from Windows revert back to original.
df -h
;sudo lsblk -f
;sudo lsblk -m
;sudo parted -ls
;uname -a
;lsb_release -a
– sudodus Jun 30 '17 at 07:11