[lug] Cloning a Windows XP laptop with Linux

Jeff Schroeder jeff at zingstudios.net
Sat Oct 14 16:11:14 MDT 2006


BOF asked:

> Is there a way that I can do this with Linux?

Use the 'dd' command.

Assuming you've got the Windows drive and the external drive attached to 
your system, and you're running Linux, you should be able to simply do 
a byte-for-byte copy of the Windows drive.

Pretend the Windows drive is /dev/hdb and the external one is /dev/sda.  
It's as simple as

dd if=/dev/hdb of=/dev/sda

That will copy partition tables and everything else.  Of course the 
external drive will have to be larger than the Windows drive, and you 
probably won't be able to use any extra space on it (since the 
partition table will assume the smaller size).

You'll probably want to look at some of the options for 'dd', like 
blocksize, and adjust accordingly.

HTH,
Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20061014/bdeab055/attachment.pgp>


More information about the LUG mailing list