Writing and reading harddrive images

Be careful with these commands, you can lose a lot of data quickly! Be mindful of the required disk space for any of those operations!

With Unix tools its pretty straight forward to create and play back images of hard drives.

Create an image of a harddrive:

dd if=/dev/hda of=/mnt/hdb1/myimage.img

Write the image back onto the harddrive:

dd if=/mnt/hdb1/myimage.img of=/dev/hda