A friend asked me to help him upgrade his old computer by installing a larger harddrive. His computer currently is running Windows XP and has a
10GB Western Digital harddrive in it. He doesn't want to keep the old drive so the new drive I install for him is going to be the only one in the machine.
To avoid having to reinstall Windows and all the headaches that come along with that I have installed a
200GB Seagate drive as a second harddrive in the machine for now. My plan is to clone his current Windows XP install to the new larger drive.
After physically installing the harddrive I booted into Knoppix. The harddrives are seen as this:
Code:
/dev/hda - 10GB Western Digital
/dev/hdb - 200GB Seagate
My first thought was to use a command like this:
Code:
dd if=/dev/hda of=/dev/hdb
but then I read that if I run that command on two different models of harddrives that problems will occur. For instance if I were to run that exact command then the 200GB Seagate would be seen as a 10GB Western Digital because "dd copies the entire disk image (including the label {vtoc})." I found that quote in an old forum post in a google search I did. It is here if you want to look at it:
http://www.unix.com/archive/index.php/t-7243.html
So is dd the way to go or not? Is there another way to do this?
My ultimate question is -
what is the best opensource/free, Unix/Linux method to clone an existing Windows XP install from one harddrive to another in the same system?