Chainload GRUB

From MEPIS Documentation Wiki

Revision as of 05:45, 3 November 2012 by Moksha (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

You can install GRUB on root of the device and load it with another boot loader that's installed on MBR by chain loading.

For example if on MBR you have GRUB and you want that GRUB to load another GRUB that's installed in the root of hda1 partition then you have to edit /boot/grub/menu.lst for the MBR GRUB and add these lines:

title MEPIS 8 at sda1
rootnoverify (hd0,0)
chainloader +1

The makeactive command is limited to primary partitions so (hd0,3) which is extended or greater will return invalid device to resolve try

title MEPIS 8.5 at sda6
rootnoverify (hd0,5)
chainloader +1

If you are attempting to chainload to a system that uses GRUB2, the method above does not work. If that is the case, try doing something like what's shown below to chainload from the Mepis grub legacy to a partition that has grub2 as its bootloader.

title Chainload to sdb7 with grub2 on it's root
kernel (hd1,6)/boot/grub/core.img 


title Another OS at sdb2
rootnoverify (hd1,1)
kernel /vmlinuz root=/dev/sdb2 ro
initrd /initrd.img 


Personal tools
In other languages