Compressed Hard Disk Image
inc | May 29, 2010 | 3:27 pmThe commands given below will allow you to create a compressed image of a complete hard disk. Under normal circumstances I would boot from a Linux Live-CD prior to performing these tasks:
dd if=source_disk | gzip > /destination.gz
For example /dev/sda is the source disk and /mnt/usb/image.gz is the destination:
dd if=/dev/sda | gzip > /mnt/usb/hd_image.gz
Then to restore the image:
gzip -dc /mnt/usb/hd_image.gz | dd of=/dev/sda
The format of these commands is very important and if used incorrectly will result in data loss, for which I take no responsibility.
—









