Back up windows NTFS with Linux
Hi there!
I wonder if I could make an image of a NTFS-Partition with a clean and fresh intstalled Win2k or WinXP on it from Linux, and recover it later, if I kill Windows by some error or something. Like with the programm ImageMagig from DOS... Is that possible? Greetings, Sascha |
If you have a partition, say /dev/hda1, (or any other block device) then you can create a backup image of it using:
Code:
bzip2 < /dev/hda1 > hda1bak.bz2 Code:
bunzip2 < hda1bak.bz2 > /dev/hda1 Edit: This works for any block device, provided that the device isn't in use when you try this. An NTFS partition contains all of its data inside the partition, so this will work. It's not optimal, though; it will sit and read sectors of empty space for example. You can also use the dd command to make this more efficient, by reading block sizes equal to the cache size on the disk. |
And you are sure it works with NTFS drives?
It looks like it does to me, and that is exactly the way I thought it would be done... but I was too afraid to try until now :-) Thanks very much! |
All times are GMT -5. The time now is 11:36 AM. |