Cloning a partition using DD. Some advice / suggestions needed.
I have a perfectly running Ubuntu distro on an old PC and I would basically like to kill two birds with one stone. One to get to know the workings of the DD command to back up a bootable partition, and two to re-assure myself that if the Ununtu partition was to be corrupted I could easily restore the entire partition from a backup copy.
Here are some details. I have 2 HDs on my Ubuntu box. First HD is entirely for the Ubuntu distro. The second HD has two fat32 partitions. One has some data on it and the other is totally free. It is on the "free" partition onto which I would like to keep a clone of the Ubuntu partition. Could the clone be in the form of one file, say "backup.xxx ?" Now, would I have to convert the free partition from fat32 to ext2/3 in order for the cloning to work or can it remain as fat32 ? Also once the Ubuntu has been backed up to the spare drive, would reformatting the Ubuntu drive to an empty ext2/3 with the help of a live CD , and using dd to copy the backup to its original Ubuntu ( now empty) partition leave the system back in its original working state and with no noticeable changes or alterations ?
The object of the exercise, being able to backup and then restore a working Linux, using dd, and with the minimum amount of fuss.
Any advice , suggestions and tips using this method would be most useful.
The tutorial on DD by Awesome is very good but I would appreciate suggestions and real world examples from people who use dd to clone / restore partitions on a regular basis.
(It is a wet and windy Sunday here so the perfect opportunity to stay in and tinker with a linux box !!!)
Thanks very much and all good wishes,
Last edited by uncle-c; 10-28-2007 at 07:28 AM.
Reason: additional point added