Thank you all for your prompt replies. I'll try the ntfsclone thing first, since ftp-ing a 39 Gb file would probably take 2 days, and my web hosting provider does not offer ssh access to run gunzip -t to check integrity.
From the link you kindly gave: "Usually, Windows will not be able to boot, unless you copy, move or restore NTFS to the same partition which starts at the same sector on the same type of disk having the same BIOS legacy cylinder setting as the original partition and disk had". This means that after doing
Code:
ntfsclone -s -o /media/sda/hda1.image /dev/hda1
I have to also back-up the Master Boot Record with
Code:
dd if=/dev/hda1 of=/media/sda/hda1.mbr bs=512 count=1
according to Wikipedia . To restore from backup, I first restore the MBR:
Code:
dd if=/media/sda/hda1.mbr of=/dev/hda1 bs=512 count=1
and then I restore the NTFS image with
Code:
ntfsclone -r --overwrite /dev/hda1 /media/sda/hda1.image
The only things left unaddressed are:
(1) How to find the disk sector the original partition started in (needed at restore time)
(2) How to control where ntfsclone writes its output on disk to make sure it does not overwrite the MBR.
(3) How tell ntfsclone at what sector to write the image on the disk to be restored, or how to find out where it was written and move it with some other tool to the correct sector after writing.
Is what I wrote correct? Does anybody have any ideas on how to do these things?
Thank you,
Nick