There are a couple of things to keep in mind.
1) the last version of Ubuntu to be installed will put its Grub into the MBR of sda. The installer defaults to putting Grub into the MBR of sda unless we point it into another direction.
2) Running update-grub will update the Grub configuration files on the partition that we are running Ubuntu from.
3) to get the changes to take effect we sometimes need to run
Code:
sudo grub-install /dev/sda
to re-install Grub to the MBR of sda. Change /dev/sda accordingly.
For example if you want Ubuntu (13.10) on sda2 to put its Grub into the MBR of sda, then load into that Ubuntu and run
Code:
sudo grub-install /dev/sda
If you want the Ubuntu (13.10) on sdb2 to put its Grub into the MBR of sdb, then load into that Ubuntu and run
Code:
sudo grub-install /dev/sdb
In find it easier to have the Ubuntu on sda controlling the MBR of sda and the Ubuntu on sdb controlling the MBR of sdb and then to use the BIOS to select a hard disk to boot from. Also, at the Grub menu if we press E we put Grub into Edit mode and we can see the boot parameters and see which kernel we are booting and from which partition. So, hd0,msdos2 would be the first hard disk and the second partition on the hard disk.
Regards.
Bookmarks