I just got a new acer netbook, it comes with windows 7. I wanted to know how I could create a recovery image using tools like dd
.
I want to know what command creates the exact backup of the hard disk and how I could restore it incase things go wrong when I try to install linux.
I have an external hard disk on which I will store this image and a bootable usb drive with ubuntu 12.04. If this isn't the best way then do suggest alternatives.
will show all the options you have. The commands below use
if
forinput file
andof
foroutput file
.A full hard disc copy can be created with any of these 3 commands:
Where the
x
inhdx
is the disc your want to copy and they
inhdy
is the destination disc. The 1st one is basically copying the disc over to another disc. The last 2 make a file and the last one also zips the file.Where the
x
inhdx
is the disc your want to restore the copy to. The 1st one restores the file (backup option 2). The 2nd one restores the zip file (backup option 3).dd
does not make understand empty space and space filled with data but if you use the gzip version the file will be a lot smaller (it can be 10 times smaller).Alternatives:
In the repositories there is also partimage
FSArchiver is a system tool that allows you to save the contents of a file-system to a compressed archive file. The file-system can be restored on a partition which has a different size and it can be restored on a different file-system. Unlike tar/dar, FSArchiver also creates the file-system when it extracts the data to partitions. Everything is checksummed in the archive in order to protect the data. If the archive is corrupt, you just loose the current file, not the whole archive. As always ... ntfs support is considered experimental.