Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm moving my OS from 1 drive to another. I have used Drive Image XML to copy the OS partition image to a different partition on a different physical drive. I want to remove the original OS drive and use the new one. Do I need to move the boot loader or something or can I just set the new drive to boot in bios?

share|improve this question

dd if=/dev/olddrive of=/dev/newdrive

remove old drive, done. dd will copy everything including MBR, plus its free.

share|improve this answer

Yes, the boot loader needs to be copied. IIRC, you just need to copy the first 512 bytes of the boot drive to the first 512 bytes of the 2nd drive if you've already copied all the data over.

dd if=/dev/hdX of=/dev/hdY bs=512 count=1

(where hdX and hdY are your old/new drives).

Disclaimer: It's been a long time since I've done this so that syntax might be incorrect and might totally screw up your new disk. Use at your own risk! (If it does screw it up, just re-clone it).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.