How to make Ubuntu 7.04 Casper Persistent

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:

    1. Download Ubuntu 7.04 feisty fawn and burn to a CD/DVD
    2. Restart your PC from the CD/DVD
    3. Open a terminal and type sudo su (to become root)
    4. Type mkdir /projectinit (to make our project directory)
    5. Type cd /projectinit (to change to the project directory)
    6. Type gzip -dc /cdrom/casper/initrd.gz | cpio -i (to extract the initrd.gz)
    7. Type gedit init (to edit the init file)
    8. From gedit, find the following section:

break)
break=premount
;;
esac

    1. Directly above esac add the following:

persistent)
PERSISTENT=yes
root_persistence=casper-rw
home_persistence=home-rw
;;

    1. It should end up up like the following:

break)
break=premount
;;

persistent)
PERSISTENT=yes
root_persistence=casper-rw
home_persistence=home-rw
;;

esac

  1. Save the changes to update the init file
  2. Type find . | cpio -o -H newc | gzip -9 > initrd.gz (to zip the new initrd.gz file)
  3. 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