How to Create Image File of Windows Xp
5 Answers 5
ntfsclone is awesome. I've used it with great success to clone systems and for backup purposes.
If your Windows partition is not using NTFS, dd should take care of you -- although it's not terribly efficient.
answered Jun 18 '09 at 0:21
Ben DunlapBen Dunlap
410 5 silver badges 10 bronze badges
4
dd would seem to be the go to choice here. The command would look like the following...replace the device and output file with whatever you wish.
dd if=/dev/sda1 of=~/windows.img
There is also partimage and ghost4linux. But for something like this both of those may be overkill and overcomplicating things.
answered Jun 18 '09 at 0:24
3dinfluence3dinfluence
12.3k 2 gold badges 26 silver badges 41 bronze badges
3
-
It'll do whitespace as well, so make sure you have enough space on your target.
Jun 18 '09 at 0:47
-
I've tried Ghost4Linux - it's a little clunky to use and if you are backing up over the network it requires an FTP target - you can't save to a normal SMB fileshare!
Jun 18 '09 at 2:25
-
about 'overkill': partimage does not save empty space on backup if it can figure out the filesystem type whereas dd does. In addition, partimage can zero out empty space on restore whereas dd can't
Jun 18 '09 at 12:43
Partimage
Definitely a good option http://www.partimage.org/Main_Page. You can create an image and compressed it to save disk space, and they can be splitted into multiple files to be copied on CDs / DVDs. Partitions can also be saved across the network.
answered Jun 18 '09 at 1:56
l0c0b0xl0c0b0x
11.5k 6 gold badges 44 silver badges 75 bronze badges
2
-
Note that the partimage site linked says NTFS supported is experimental. It recommends not turning on NTFS compression and defragging your filesystem before creating the image.
Jun 18 '09 at 2:22
-
I've used it a bunch of times, never had a problem restoring other than having to be creative when it comes to restoring to a bigger HD. Thanks for pointing it out though, I thought that by now they would have taken cared of any bugs with NTFS.
Jun 18 '09 at 22:59
And you'll probably need your master boot record too. the command will be something like:
dd if=/dev/sda of=~/windows.mbr bs=512 count=1
That will give you your boot sector and your partition table. Take a look at this for more information.
answered Jun 18 '09 at 0:54
resonatorresonator
281 1 silver badge 10 bronze badges
clonezilla == an opensource version of ghost, works really well
answered Jun 18 '09 at 1:05
BrendanBrendan
894 6 silver badges 5 bronze badges
2
-
I have bad memories of ghost...
Jun 18 '09 at 22:55
-
clonezilla is a live cd with a bunch of utilities pushed together which includes ntfsclone, so same principle as ghost but completely different implementation
Jun 19 '09 at 0:13
Not the answer you're looking for? Browse other questions tagged linux windows backup partition hard-drive or ask your own question.
How to Create Image File of Windows Xp
Source: https://serverfault.com/questions/27732/create-image-of-windows-partition-on-linux/27754
I've imaged many, many hundreds of Windows XP machines w/ ntfsclone. It's wonderful. BG Rescue Linux (giannone.eu/rescue/current) is a nice packaged bootable CD distro that has the ntfsprogs built in.
Jun 18 '09 at 0:40
Thanks for that link - my bootable rescue CD of choice has been System Rescue CD (sysresccd.org) but I will probably check out BG Rescue now. Does it include an option to boot right into non-Linux utils like Ranish?
Jun 18 '09 at 0:44
It's just a plain, vanilla CD (or floppy!) based rescue linux distro. It's helped me out quite a number of times.
Jun 18 '09 at 1:02
Oh, yeah-- and it has "ms-sys" so that it can write Microsoft-compatible MBRs and boot sectors. Also a big win.
Jun 18 '09 at 1:02