Hi,
On 2 Jun 2007, at 17:52, Avuton Olrich wrote:
> For some time now, I've been doing a backup to a XFS partition (using
> rsync snapshots) from an NTFS/Windows XP partition that I need often
> backups of. A few days ago I had a hard drive loss, so I went to
> restore, here are the steps I used:
Bad plan, this does not give you everything.
> Got a new hard drive in and:
> 1) cfdisk /dev/hda (Use '07' for the type, set boot flag)
> 2) mkfs.ntfs /dev/hda1
> 3) (mounted with ntfs-3g)
> 4) Restored the files from my XFS backup partition
> 5) Setup grub as it is on the Windows machine
>
> After I reboot, I select the Windows partition in grub exactly as it
> was also restored and it tells me something went wrong and I need to
> insert a system disk (sorry, I didn't write down the complete error
> message).
Expected behaviour. This can never work. Windows is very picky
about what modes and attributes the system files have, whether their
names are in WIN32 & DOS namespace or POSIX namespace, etc, etc.
NTFS-3g will neither read nor write any of these features and even if
it did rsync would not know about them thus it would not backup/
restore them. Thus your backup method cannot work. If you want to
do what you do you would have to only backup your files then on the
new disk install Windows from scratch and then put your files back
(note NOT Windows files only the data files you added).
> Luckily for me, the drive wasn't completely trashed so I got the old
> hard drive and:
> 1) ntfsclone'd the old drive onto the new one
> 2) Used ntfsresize
>
> This worked perfectly. This also means I need to either figure out
> what went wrong the first time, or change my backup method to a full
> backup rather than a incremental backup.
No full backup would be no use either. You have to use ntfsclone if
you want to be able to restore it. Just copying the files cannot work.
> Did I do something (obviously) wrong when trying to restore from my
> XFS partition, or is this simply not supported yet? Insight?
I think I have answered that already... Yes you did something
obviously wrong. You did not use ntfsclone to do the backup...
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer, http://www.linux-ntfs.org/
|