Installation – Easy Way to Transfer an OS from One Hard Drive to Another

hardwareinstallationwindows 7

So here's my situation. I have a dual boot windows7 and Ubuntu 10.04.1 on a run-of-the-mill hard drive. In a day or two I will get a new 64GB SSD in the mail and want to boot from that for obvious reasons. I was wondering if there was an easy way to transfer both OS's from my current hard drive to my SSD. I would normally reinstall the two on the new disk but my windows7 product key only works for activation once and I would like to keep it. Any ideas would be greatly appreciated.

Best Answer

You can set up your new drive with partitions the same size as your old one. Then you can copy the partitions from the old harddrive to the new using the command dd using the block devices in /dev (i.e dd if=/dev/sda1 of=/dev/sdb2 bs=1024 etc).

Finally you need to re-install grub in the MBR of your new drive. Some explanation how to do this are on Ubuntu's help wiki.

Related Question