Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

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

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.

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


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.