Linux-Noob Forums

Full Version: Create an Image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I have recently downloaded a program called partimage (A clone of ghost) I am looking for some information on making and image of my linux drive. Also if you know of a different way to create an image that would be great the software doesn't really matter only createing the image does :)

dd if=/dev/hda of=hda.iso

 

you now have an iso image of the entire contents of drive hda


be careful that you don't treat that file like an iso9660 (like a cd) file. that is a raw sector by sector dump of that physical device.

 

you can then reverse the instructions on to a partion that is of _exactly the same size_. i can't stress exactly enough.

 

dd if=/dev/hda1 of=/tmp/hda1-dumpfile

dd if=hda1-dumpfile of=/dev/hda1

 

if stands for infile, of stands for outfile.