After struggling a little bit on ways to guarantee a faster system restore after messing up with my computer (that's the downside of the open source world, as you can do anything you want, it is rather easier to irreversibly crash your system), I finally came up with a solution that is serving good to me. Coming from the Windows environment, the idea of Ghost Image is still the best, and safest way to backup the system. Looking into some similar solutions for Linux, I found the partimage application, that is provided in many rescue cds on the net. My choice was: SystemRescueCD. A catchImagining a simpler system like my own (a laptop booting on a single EXT3 partition, plus Swap and that's it), the backup can only be done from an external hard-drive. I did it using a USB external storage. A bugThe partimage, although very good application, still does not work for the smallest compression option (Bzip2). The Gzip is good enough (around 20% of the original system size). My steps1) Mount the external storageThis thing you need to do manually, but it is no trouble at all, if you know what you need to do... since I was in this group, it took me a while, hehe...In my case I am mounting a NTFS drive, so that I can transport files to multiple OS without problems (and over 4GB). Just Mac has issues with NTFS, as the drives are read-only. * If you do not know your device code, you may get it by running the partimage once, the first screen will display the available hard drive devices. Your screen would be something like this: 2) Run the partimage application Once you already know here to place the image file, let's go to the partimage. Just type partimage (see image above), and the following screen will show up to you: My settings here are simple:
My settings here are:
As the setting in the previous screen, leave a comment that may help you remember about what is in this image. Then just press space to hit the OK button (where is my mouse pointer to click it? hehe) ![]() The partimage returns a preview of the job to be executed, just continue normally... And this is the screen showing the execution of the job, which does not take long. To create an image of a 4GB system took me less than 6min, and to revert it back even less than that. Really as I expected! Kudos for partimage guys! |












Update: Partimage does not work yet with EXT4 filesystem (default in Ubuntu 9.10). Their website recommends use of fsarchiver instead.