LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grub2 ignoring my grub.conf? (https://www.linuxquestions.org/questions/linux-newbie-8/grub2-ignoring-my-grub-conf-771081/)

dbulka 11-23-2009 05:17 PM

Grub2 ignoring my grub.conf?
 
I'm using Grub version 1.97 on Linux red hat 2.6.18.

The "menu.lst" had been retired by this version of Grub and replaced by grub.conf.

I'm confused about how this works. I used "grub-mkconfig -o grub.conf" to create a "grub.conf" file. The new file looked ok. Then I copied the file to "/boot/grub" where the menu.lst used to live. I followed this with a "grub-install /dev/sda" just in case the "grub.conf" file needs to be copied to the boot partition.

I followed with a reboot expecting to see Grub pop the new menu entries specified in "grub.conf", but instead, grub went straight to the command line interface as if it could not find the "grub.conf". There was no graphical menu.

Questions:

1. Is "grub-mkconfig" the right tool to use to create a new "grub.conf"?
2. Once a grub.conf has been created, where am I supposed to copy it to?
3. Do I need to run another "grub-install" for the new "grub.conf" to take effect?

TIA,

Dov

exvor 11-23-2009 07:26 PM

grub-mkconfig actually creates a file called grub.cfg not grub.conf. You may wanna check for that file.

dbulka 11-24-2009 12:09 PM

Bingo! You are correct. Once I changed the file name to grub.cfg, it now works fine. Thank you so much.

exvor 11-24-2009 06:33 PM

No worries I myself am crawling out of my grub cave and discovering grub2 :P


All times are GMT -5. The time now is 11:17 PM.