I wanted to know if I could just use Linux command ‘dd’ to make a copy of a hard drive. The hard drive has windows XP and the goal is to move data from a smaller HDD to this larger one without having to explicitly re-install windows. I personally don’t know enough to know if this has the potential to screw up the file system. I also don’t know if this works between different models of HDDs.
Share
Yes, you can do this, with a couple things to be aware of.
Different brand hard drives (or even different models of the same brand) may not be the exact same size. You should check the real size of the block devices to verify the target drive is the same size or larger than the source drive. As long as it is, you are good to go.
If the target drive happens to be larger, after you’ve cloned the drive you can use gparted to expand the partition to fill the drive.
In fact, you could use gparted to shrink the source partition and then copy it to the target drive if the target drive happens to be smaller.
As dicoroce mentioned, you can also copy just partitions instead of an entire drive. Just be aware that if you only copy the partition, you will have to reinstall the MBR (though that is trivial)