LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-01-2003, 06:25 PM   #1
jiggywiggy
Member
 
Registered: Aug 2003
Distribution: OS X (Darwin)
Posts: 57

Rep: Reputation: 15
GRUB configuration


I installed a new kernel in redhat9 and I was wondering how to modify GRUB to unlist it.
 
Old 09-01-2003, 09:35 PM   #2
Zb7
Member
 
Registered: Jul 2003
Location: Cincinnati, Ohio
Distribution: Slackware 9 (current), Gentoo 1.4, Redhat shrike
Posts: 86

Rep: Reputation: 15
/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.
 
Old 09-01-2003, 10:16 PM   #3
jiggywiggy
Member
 
Registered: Aug 2003
Distribution: OS X (Darwin)
Posts: 57

Original Poster
Rep: Reputation: 15
So how do I open grub.config, I'm a newb.
 
Old 09-01-2003, 10:37 PM   #4
dyson214
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
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

Last edited by dyson214; 09-01-2003 at 10:42 PM.
 
Old 09-02-2003, 12:53 AM   #5
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
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.
 
Old 09-02-2003, 05:34 PM   #6
jiggywiggy
Member
 
Registered: Aug 2003
Distribution: OS X (Darwin)
Posts: 57

Original Poster
Rep: Reputation: 15
I did vi /boot.grub/grub.conf and deleted the kernel listed there, and it seems like that did the trick. Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB configuration mebrelith Fedora 2 11-29-2004 08:22 AM
Grub Configuration RJDavison Fedora 4 05-21-2004 02:44 PM
GRUB splashimage configuration / update GRUB rudL Linux - Software 1 05-10-2004 08:16 AM
Grub configuration ekoome Red Hat 1 02-14-2004 04:00 AM
GRUB Configuration RedHatMN Linux - Software 3 01-22-2002 08:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration