where is GRUB installed to (dual-drive)?

Daniel Sobey dns at dns.id.au
Sun Jan 13 13:31:50 UTC 2013


Hi David,

The windows boot loader is installed on the MBR as well as the partition
containing windows.
Installing a linux distro will typically install grub on the MBR leaving
the boot loader on the windows partition intact.

The Easiest way to install grub on a different partition / different drive
is to run the following to reconfigure the grub package:

 sudo dpkg-reconfigure grub-pc

By default grub is installed on the MBR of the first drive, you can install
it on multiple drives and multiple partitions.
If you want multiple separate linux installs on your machine the trick is
to install a boot loader on a partition instead of just on the mbr.

Have one distribution be your "Master" and have this contain a chan loading
rule.
The idea of chain loading is you get a boot menu and create an entry to
call grub on the hard disk.
This is how windows is usually booted, the boot loader is installed at the
start of the windows partition, so grub starts, you select windows and the
windows boot loader starts.
So you could set it so grub starts, you select an entry that chain loads
the fedora grub and you then boot fedora.

ie
/dev/sda  - MBR, ubuntu grub installed here
/dev/sda1  - windows installed here, windows boot loader
/dev/sda2  - ubuntu /boot or / partition, you could also install grub here
/dev/sda3  - fedora /boot or / partition, this contains a grub / lilo
install

So that is the theory.
You need something like the following in your grub configuration, add this
to the file /etc/grub.d/40_custom and run sudo update-grub2 to rebuild the
configuration

menuentry "Grub 1 Bootloader" {
set root=(hd0,3)
chainloader +1
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-au/attachments/20130114/1c1ec3d8/attachment.html>


More information about the ubuntu-au mailing list