grub can find grub.conf, how do i make it permanent?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
grub can find grub.conf, how do i make it permanent?
allow me to explain... running dual boot XP and linux on two drives (XP primary, FC5 secondary). when the computer boots up, i get the grub command shell. i can successfully boot both FC5 and winXP using command line commands, but don't want to do that every time i turn on the computer. so, the reason it isn't going into a graphical menu is that grub can't find grub.conf (because grub is on MBR, WinXP drive and grub.conf is on secondary drive). this can be remedied with command:
grub>configfile(hd1,0)/grub/grub.conf
and the grub menu appears.
but how do i make that permanent, so that i can always get the menu first? thanks
Grub doesn't care which disk holds the MBR, and which disk holds the rest of grub. It's all in the grub config file. On some distros, is called grub.cong; on others it menu.lst. Both files are found in /boot/grub. With FC, I beleive the correct file is /boot/grub/grub.conf. Regardless of the file name, the format is the same.
So, let's see your grub.conf.
PS. Boot FC, then from the console, type 'grub' (sans quotes), then enter 'find /boot/grub/stage1' to see where grub finds the rest of itself. Then edit grub.conf to show that location. It should take care of your lack of a grub menu on startup.
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5smp)
root (hd1,0)
kernel /vmlinuz-2.6.15-1.2054_FC5smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5smp.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
couldn't find the stage1 file you mentioned... thanks for help by the way. any other ideas?
if i weren't too busy dancing at the frayed feet of this gordian knot, i would grace this forum with a tinny MIDI choir singing praise WhatsHisName in the highest.
THANK YOU BOTH
grub booted PERFECTLY
now i just have to do that to 6 more computers... hehe.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.