4

I have created an Ubuntu Live USB using pendrive's Universal USB Installer. I found a link about creating the casper-rw but it's for a Live CD at https://help.ubuntu.com/community/LiveCD/Persistence.

How do I create casper-rw and configure the live USB to recognize the casper-rw for persistence?

2 Answers 2

3

The above answer is probably the simplest but if you want more than 4GB persistence:

Boot Live CD or Live USB.

Plug in flash drive.

Start gparted.

Create 2 GB FAT32 partition, (on the left side of the bar). (size is optional, extra space can be used for file storage and transfer to Windows machines).

Create a 4 GB ext2 partition to the right of this, labeled it "casper-rw". (ext3 and ext4 also work).

Create a partition in the remaining space and label it "home-rw". (optional, creates a separate home partition)

Close gparted.

Un-mount and re-mount flash drive.

Start "Create a live usb startup disk", (usb-creator).

Select "Discard on shutdown".

Press "Make Startup Disk.

When usb-creator finishes replace the contents of the file syslinux.cfg with:

default persistent
label persistent
  say Booting a persistent Ubuntu session...
  kernel /casper/vmlinuz
  append  file=/cdrom/preseed/ubuntu.seed boot=casper persistent initrd=/casper/initrd.lz quiet splash noprompt --

Shutdown, remove CD, reboot.

First time booting you can go to users and groups and create an account with yourself as an Administrator, with password if desired.

Note: The above code will bypass the Try/Install and Language screens.

1
  • 1
    Note that this method has not worked since about 14.04. Nowadays the easiest way to get persistent partitions is to use mkusb to make the drive. help.ubuntu.com/community/mkusb Dec 1, 2016 at 7:29
1

The easiest way is to use "Startup Disk Creator" that comes with ubuntu distributions (or others too?). This has an option for "persistance". If you do that it is a lot simpler than you would expect. Please see this article for screenshots. It is 4 years out of date, but there doesnt seem to have been much that has changed.

Alternatively you can also use UNetBootIN. It has the "persistance" option as well, but I havent personally tried it.

1
  • SDC no longer supports persistence, UNetbootin does but only to a 4GB max. better to use mkusb. Dec 1, 2016 at 7:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .