Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My hard disk is /dev/sdb in machine B. Later it should be used as /dev/sda in machine A. It contains the root partition / and boot directory /boot for machine A.

Is it possible to install grub in advance in machine B?

share|improve this question

1 Answer 1

Just install grub to /dev/sdb

sudo grub-install /dev/sdb

grub, by default, uses uuid, so it should work.

If you have problems for any reason, you would need to reinstall grub after the transfer.

https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

share|improve this answer
    
Ah, it uses uuid. So it Wouldn't try to boot from the second hard drive (hd1,1) then? Don't I have to specify the mount point of /dev/sdb? –  chris Jan 20 '12 at 16:30

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.