Using DD to copy a Windows installation

Yes, if the new disk is the same size or larger than the old one. If it uses GPT partitioning, the backup GPT table at the end of the disk will probably be in the wrong place unless the disks are exactly the same size. gpart(8) can fix that. Whether Windows will like that fix, I don't know. My experience is that Windows partitioning and disk layout is remarkably fragile.

I would use Clonezilla, which will handle most of the problems and do it more quickly than dd(1).
 
Just to confirm this, I've used dd to copy windows (7) installs. I can't recall what windows thought of the backup GPT table missing, but it booted fine. Running the disk utility in windows allows you to then grow the NTFS partition to fill the disk if you've transferred to a larger hard rive.
 
Windows 7 is almost always an MBR install, so it is not a problem. But dd(1) copies the entire disk, so it generally ends up wasting time copying a lot of blank space.
 
Back
Top