LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GRUB configuration (https://www.linuxquestions.org/questions/linux-software-2/grub-configuration-88146/)

jiggywiggy 09-01-2003 05:25 PM

GRUB configuration
 
I installed a new kernel in redhat9 and I was wondering how to modify GRUB to unlist it.

Zb7 09-01-2003 08:35 PM

/boot/grub/grub.conf


You can place "#"s in front of any code you don't want GRUB to see.

Remember to place it in front of all the lines for the Redhat boot codeblock.

jiggywiggy 09-01-2003 09:16 PM

So how do I open grub.config, I'm a newb.

dyson214 09-01-2003 09:37 PM

uh, here is an example from my system...
ok like this...
su
[enter root password]


vi /boot/grub/menu.lst [the letter l]
[i jusst noticed the other guy said to edit grub.conf ... not sure the difference but i think grub.conf souds like the better place to do it]


[now hit the letter i to insert in vi ... i know, i hate vi too]
[arrow down to the title line corresponding to what u want to comment out and type the # char in front of each line until the next title line then hit the ESC key, then type :wq [ENTER] to save and quit... all set to reboot]

...for example, i commented out my first attempt at recompiling the kernel

default=1
timeout=10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
#title Red Hat Linux (2.4.20-8_recomp)
# root (hd0,6)
# kernel /boot/vmlinuz-2.4.20-8_recomp ro root=LABEL=/ hdk=ide-scsi hdl=ide-scsi
# initrd /boot/initrd-2.4.20-8_recomp.img
title RedHat9.0 (2.4.20-8)
root (hd0,6)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdk=ide-scsi hdl=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title WinXPPro
rootnoverify (hd0,0)
chainloader +1

koyi 09-01-2003 11:53 PM

Quote:

[i jusst noticed the other guy said to edit grub.conf ... not sure the difference but i think grub.conf souds like the better place to do it]
I think they are different just because of the versions of grub. It is good to have a link from one to another.

Here is how to make a link:

[inside /boot/grub/]
ln -s grub.conf menu.lst [menu.lst -> grub.conf]
ln -s menu.lst grub.conf [grub.conf -> menu.lst]

You only need to do either one of the above. Of course it is ok to leave it alone without any links, as it is quite impossible to have 2 different versions of GRUB on one system. I just read it in some docs before.

jiggywiggy 09-02-2003 04:34 PM

I did vi /boot.grub/grub.conf and deleted the kernel listed there, and it seems like that did the trick. Thanks


All times are GMT -5. The time now is 04:45 PM.