Quote:
Originally posted by JZL240I-U
You hint at something like the reading of the windows partition is faster than writing it back?!?
|
ummm... i do??? well, the truth is the time it takes to make the image is not as important to me as the time it takes to restore it... i only create a new image about once a month or so...
Quote:
Originally posted by JZL240I-U
I mean it is all on the same physical volume (hda), isn't it, so it can't be disabled DMA or something.
|
i think it's been established that what makes dd so slow at this is the fact it restores everything, including blank space...
Quote:
Originally posted by JZL240I-U
Ever tried sync as a means to flush all buffers before writing back the windows partition?
|
no, i haven't tried it... i just read the man page for sync and i'm not exactly sure that it's something that i really need...
-------------------------------------------
-------------------------------------------
i used to use tar to restore winblows, sorta like this:
CREATE (about once a month, after doing all the usual critical updates and stuff):
tar -cf /home/win32sux/backup.tar /mnt/windows/*
RESTORE (several times per day):
rm -fr /mnt/windows/*
tar -xf /home/win32sux/backup.tar -C /mnt/windows/
this also worked okay and was quite fast (WAY faster than dd), however it had some drawbacks... sometimes it seemed like the windows partition would get screwed-up (perhaps virus, hostile user or whatever) and then linux would have problems accessing the windows partition to copy the fresh files... so i'd have to re-format the windows partition and do the tar -xf again... and then i'd still have to use the winxp rescue cd recovery console thinggy to do a "fixboot" so windows could boot again... this happened a couple times a month and was a major pain...
with dd i never have to use fixboot or anything like that... even if a hostle windows user formats "c:", dd would take care of everything in one step...
i'm wondering if perhaps a "mixture" of the tar method with the dd method might work...
i'm thinking perhaps i can create an image, using dd, of the "boot sector" (is that what it's called?) of the windows partition ONLY (it's like the first 512 bytes or something, right???), and then a tarball of the files and stuff... so restoration would be three steps:
1- re-format fat32 partition
2- dump (using dd) the boot sector image into the partition
3- untar the files to the windows partition
does this sound plausible???