Unbuntu liveCD in persistent mode
Translation of the original in Catalan. Read it in: CatalàCastellano
In the unionFS article I already talked about liveCDs in persistent mode. The idea is both simple and powerful, it is about booting linux from the liveCD, in this case, Ubuntu. But unlike a normal boot process we will tell the initial menu that we want to do it in persistent mode and we will save all the changes we make during the session: new installed packages, application data, system customisations, various configurations, etc.
How to do it is quite simple and you only need a pendrive, hard disk or any other storage device with write support. Now you only have to:
- Change the label, the volume name, to casper-rw: e2label /dev/hda1 casper-rw
- If the partition has an ext3 format the root partition will be used to store the persistent files in it.
- If we have a hard disk with FAT32 format, for example, we can create a file at the root with the name casper-rw and inside the file create an ext3 file system, like this:
- When we boot the system with the CD or DVD and we are at the initial menu we have to press F6 and in the kernel parameters that appear at the bottom of the screen we add the word persistent at the end.
- If you look closely, when the distribution starts it no longer only reads from the CD but also from the pendrive or hard disk.
As this guide is not very exhaustive, since I only wanted to set out the idea and explain the functionality, for more information you can consult: LiveCDPersistence from the ubuntu wiki.
NOTE: it is vital that you remember that you also have to change the label of the hard disk so that it mounts as part of the storage of the liveCD's persistent mode, otherwise it will not mount. I lost more than 2h looking at source code because of a spelling mistake and because I was not clear about what the ubuntu manual said.