GRUB on two mbrs
Hello list member, I have hashed this out with a handful of people on the fedora list and have had no luck making it work in any permutation.
I have Fedora 7 installed on sda, it has a /dev/sda1 for /boot and grub was installed to the mbr. It boots Fedora fine.
I have Mandriva 2008 installed on sdb, it has a /dev/sdb1 for /boot and grub was installed on the sdb mbr.
I would like to make an stanza in the fedora menu.lst file that will pass control to the grub installed on sdb's mbr.
I want to do this so that when mandriva updates the kernel I will not have to modify the menu.lst in the fedora installation.
Note: I can boot mandriva from the stanza that I created in the Fedora 7 menu.lst file, but if mandriva updates the kernel then I have to modify the stanza.
I have tried almost every permutation of the following:
title Mandriva 2008
rootnoverify (hd1,0)
makeactive
chainloader +1
I have tried it with chainloader, chainloader (hd1,0), chainloader (hd1,0)+1. I have tried with root (hd1,0).
I thought I had read somewhere one time that this could be done, but I cannot find it any where.
Any thoughts or advice would be appreciated.
Signature · 3 lines
John Registered Linux User 263680, get counted at http://counter.li.org
Quoted 3 lines · John Pierce
Hello list member, I have hashed this out with a handful of people on the fedora list and have had no luck making it work in any permutation.
[...]
This list is about the development of GRUB 2. Your question is about using GRUB Legacy, so not appropriate here. Please use the [email protected] mailing list, hopefully someone on that list can help you.
--
Marco
Quoted 6 lines · John Pierce
title Mandriva 2008
rootnoverify (hd1,0)
makeactive
chainloader +1... I have tried with root (hd1,0).
Have you tried "root (hd1)" yet?
I think that's the way to refer to the "MBR" of a drive ...
Steve
Grub2 wiki
Some time ago I tried to use Grub2, having found that Grub1 (Legacy) didn't work on my system ( yes, I know my logic was poor! ).
While trying to find how to use it, I came across the following page :-
http://grub.enbug.org/TestingOnX86
In that page there is a section about installing Grub2 on a "Real system", which seems to me to have an obvious error which might mislead others. I am too old and feeble to engage in battle with wicked wikis but I would like to offer the following comment to the page's author (or in the hope that it might help to improve the "documentation" of grub2:
In the first code box of this section the last command reads :-
grub-install --grub-setup=/boot/grub/grub.cfg /dev/hda
I think the error is to quote the path to the config file as an argument where the path to the grub-setup program is expected. The default path is probably OK anyway, so you can probably just omit the whole option :-
grub-install /dev/hda
The above should run grub-setup successfully (rather than trying to execute grub.cfg!) for you so there's no need to run it again: If this works then the comments that follow about a "bug in grub-install" could be removed.
Hope this helps!
Steve
Re: Grub2 wiki
Quoted 4 lines · steve platt
grub-install --grub-setup=/boot/grub/grub.cfg
/dev/hda
I think the error is to quote the path to the config file as an argument where the path to the grub-setup program is expected.
Fixed, thanks.
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call, if you are unable to speak? (as seen on /.)