Making a casper persistent Ubuntu 7.04 (Feisty Fawn): Since the initial release of Ubuntu 7.04, much of the portable linux community has been eager to run Ubuntu 7.04 persistently from a USB device or emulated using Qemu. It only makes sense that we should be able to save and restore settings changes via a persistent partition or img (image). In the following tutorial, we are simply re-enabling the old casper system.
How to make Ubuntu 7.04 casper persistent:
-
- Download Ubuntu 7.04 feisty fawn and burn to a CD/DVD
- Restart your PC from the CD/DVD
- Open a terminal and type sudo su (to become root)
- Type mkdir /projectinit (to make our project directory)
- Type cd /projectinit (to change to the project directory)
- Type gzip -dc /cdrom/casper/initrd.gz | cpio -i (to extract the initrd.gz)
- Type gedit init (to edit the init file)
- From gedit, find the following section:
break)
break=premount
;;
esac
-
- Directly above esac add the following:
persistent)
PERSISTENT=yes
root_persistence=casper-rw
home_persistence=home-rw
;;
-
- It should end up up like the following:
break)
break=premount
;;persistent)
PERSISTENT=yes
root_persistence=casper-rw
home_persistence=home-rw
;;esac
- Save the changes to update the init file
- Type find . | cpio -o -H newc | gzip -9 > initrd.gz (to zip the new initrd.gz file)
- Then you can copy the new initrd.gz file to your usb flash drive, replacing the old file (or rebuild the iso to include the new file)
*Ubuntu is a product of Canonical Ltd