Fedora Linux Support Community & Resources Center
  #1  
Old 14th March 2004, 08:26 AM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
How Delete 2nd Kernel line in Grub?

hello guys,

i reinstalled FC and did updates right away, and also
updated kernel thru yum

when i power my pc Grub gives me 2 kernel lines:

FC (2.4.22-1.2174.nptl << updated kernel
FC (2.4.22-1.2115.nptl first kernel after installation
WinsXP

I tried deleting (=e) the 2 kernel line from the grub but it does not delete

then i tried this and i got the following message from the shell:

[imdeemvp@localhost imdeemvp]$ uname -r
2.4.22-1.2174.nptl
[imdeemvp@localhost imdeemvp]$ rpm -e kernel-2.4.22-1.2115
error: package kernel-2.4.22-1.2115 is not installed
[imdeemvp@localhost imdeemvp]$

can someone tell me how to delete the second kernel line that appears in grub? which is the one i could not remove! thanks a lot!
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #2  
Old 14th March 2004, 10:08 AM
mhelios Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Queensland, AU
Posts: 736
It may already be removed. To check:
Code:
#rpm -qa | grep kernel
If it only lists 2174 then somehow, the uninstallation didn't remove the grub entry. To do that manually just edit your /boot/grub/grub.conf file and remove the lines corresponding with the old kernel. The lines like this:
Code:
 title Fedora Core 1 (2.4.22-1.2115.nptl)
        root (hd0,1)
        kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdc=ide-scsi rhgb
        initrd /initrd-2.4.22-1.2115.nptl.img
__________________
mhelios@fedoraforum.org
Registered Linux User # 348963
GnuPG KeyID: 0xCE9F8922
Reply With Quote
  #3  
Old 14th March 2004, 01:01 PM
foolish's Avatar
foolish Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Aalesund, Norway
Age: 26
Posts: 1,888
When you've updated, just remove the outdated kernels using by first doing rpm -q kernel to get the packagename and then rpm -e packagename to remove it. Its a good idea to keep at least two kernels handy, in case something goes wrong with one.
__________________
Sindre Pedersen Bjørdal || http://www.fedorasolved.org || Hardware Profile
- Please adhere to the FedoraForum Guidelines.
Reply With Quote
  #4  
Old 14th March 2004, 08:34 PM
viper8 Offline
Registered User
 
Join Date: Mar 2004
Location: Detroit Rock City!
Posts: 146
If you want to remove a kernel rpm, you have to type the entire kernel rpm name, which in your case would be:

Code:
rpm -e kernel-2.4.22-1.2115.nptl
But, I agree with foolish, definitely a good idea to keep a few known "good" running kernels around. Ya never know! Also, the actual kernel doesn't take up much space anyway
Reply With Quote
  #5  
Old 14th March 2004, 08:55 PM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 44
Posts: 8,256
Thanks guys....

unfortuanally before 1 read the last two replies i did edit the /boot/grub/grub.conf and deleted it,
i thought i was bad to have two kernels running at the same time....since i updated to KDE 3.2
the pc freezes (sometimes) and i thought i was due to having two kernels....well i'll see how it goes!

this issue is RESOLVED!
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #6  
Old 15th March 2004, 06:56 AM
mhelios Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Queensland, AU
Posts: 736
Quote:
this issue is RESOLVED!
Remember that you (OP) can RESOLVE your own threads.
__________________
mhelios@fedoraforum.org
Registered Linux User # 348963
GnuPG KeyID: 0xCE9F8922
Reply With Quote
Reply

Tags
2nd, delete, grub, kernel, line

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F9 new line in GRUB? Jappi Installation and Live Media 4 25th May 2008 11:30 PM
howto reinstall grub ( after delete vista ) carlainz Using Fedora 1 6th August 2007 11:26 AM
Can i delete GRUB and put the XP boot without cd??? Dograzor Using Fedora 5 15th July 2007 10:51 PM
ok to delete /boot if grub installs to MBR? violent Installation and Live Media 4 12th April 2005 06:41 PM
How To Delete Choices in GRUB curious101 Using Fedora 1 8th April 2004 03:44 PM


Current GMT-time: 01:56 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat