Lubuntu Live-USB – Why Persistence Isn’t Working on Lubuntu 12.04

live-usblubuntupersistence

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.

Best Answer

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<FLASH-DEVICE-PARTITION-FOR-PERSISTENT-DATA>
    
Related Question