GRUB configuration
I installed a new kernel in redhat9 and I was wondering how to modify GRUB to unlist it.
|
/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. |
So how do I open grub.config, I'm a newb.
|
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 |
Quote:
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. |
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. |