Tuesday, September 17, 2019

Why isn't persistence working on Lubuntu 12.04 Live-USB?



I have used Universal-USB-Installer ever since to install different Linux versions to USB flash drive. But now with Lubuntu 12.04 even though I do the same process by selecting persistence file, it gets created but is never used in Lubuntu. Every time I boot into Lubuntu on flash, it is fresh new Lubuntu without my changes I did last time I have booted it.



Anyone can help me or give me some hints ? Thanks in advance.



Previous answers only quote one of the two parameters needed by a live *Buntu to have a working persistence auto activated. Below was tested with Lubuntu/Ubuntu 14.04.1:





  1. The syslinux menu (or grub.cfg if GRUB2 is used) must have "persistent" (not "persistence") added as a kernel boot parameter as @Jason pointed it out:




    • Example for syslinux:



      append  file=/preseed/lubuntu.seed boot=casper persistent initrd=/casper/initrd.lz ...

    • Example for grub2:




      linux /casper/vmlinuz file=/preseed/ubuntu.seed boot=casper persistent quiet splash ...


  2. And the Flash-device's partition that is reserved for persistent data must be labelled "casper-rw"
    This is achived with a nice GUI tool such as gparted, or in command-line, eg:



    mkfs.ext2 -L casper-rw -m 0 /dev/sd



No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...