Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

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

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

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

share|improve this answer

Your Answer

 
discard

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.