Re: How to find active grub.conf




edgefree wrote:
Thank firstly.

Actually, current my situation is I will reboot my machine remotely. So
I have no chance to change grub.conf during grub booting time. So, I
have to change the correct boot kernel before reboot. Then, I need to
know where the right grub.conf is.

I guess grub stage1 in MBR should know where it is. Who know how to
pick-up the information in grub-stage1? Or whether grub shell provides
corresponding command or API for it?

Thanks you all for attention.

Gavin.

Hello Gavin;

Firstly;
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>

Do you have no 'menu.lst' file in /boot/grub ?
If you do;
$ cat /boot/grub/menu.lst

Read the commented areas of the file...follow up using earlier advice
from another poster;

If you have no 'menu.lst' file anywhere - use google to find out what
it contains and does.

[ Previously written ]
Nico Kadel-Garcia wrote:
Add a comment in the displayed boot configurations line of your different
grub.conf files, referring to the distribution it's from.

[ Previously written ]
Robert Nichols wrote:
When GRUB starts up, press the space bar immediately so that the menu is
displayed, then type a 'c' to get to the GRUB command prompt. At the
GRUB command prompt, type:

cat /boot/grub/grub.conf

and see what partitions are referenced in the config file. Remember
that GRUB numbers devices and partitions beginning with 0, so /dev/hda1
would be (hd0,0) in GRUB.

Nobody will help you, unless you answer/reply with some context!

.



Relevant Pages

  • Re: /boot partition mislabeled on last reinstall - need advice on how to fix
    ... > partitions for example with tune2fs, ... When I reboot, ... To examine the MBR: ... Good info on the master boot record and GRUB google "thestarman GRUB". ...
    (Fedora)
  • Re: [SLE] reboot
    ... > 9.3 has a long-click reboot that lets you choose what grub boots. ... Your problem will be how to reboot out of windows, ... As to the mechanics of how KDM instructs grub to boot some alternative ...
    (SuSE)
  • Re: Fedora 11 fail because of Anaconda :(
    ... If I let it default the filesystem layout, I can see and partition the ... disk, but always get a popup about not being able to find a disk ... boot image on first reboot. ... There is some sort of grub problem. ...
    (Fedora)
  • Re: [SLE] reboot
    ... > 9.3 has a long-click reboot that lets you choose what grub boots. ... within a kde session. ...
    (SuSE)
  • [opensuse] Xen in 11.0
    ... By _that_ I mean, play the dumb user and just install the default full desktop, work at the regular real console no serial console, use sub-2TB partitions and an ordinary msdos disklabel, and then use the gui util offered in the main gnome menu to install Xen, reboot into dom0, then use the gui util to create a vm, install opensuse 11.0 into that just as if it was a new bare metal server. ... Same machines I couldn't even get grub* to boot before. ... Thats just booting dom0 on the hardware, ...
    (SuSE)