PDA

View Full Version : How Delete 2nd Kernel line in Grub?


imdeemvp
14th March 2004, 08:26 AM
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!
:D

mhelios
14th March 2004, 10:08 AM
It may already be removed. To check:

#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:

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

foolish
14th March 2004, 01:01 PM

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.

viper8
14th March 2004, 08:34 PM
If you want to remove a kernel rpm, you have to type the entire kernel rpm name, which in your case would be:


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 :)

imdeemvp
14th March 2004, 08:55 PM
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!:D

mhelios
15th March 2004, 06:56 AM
this issue is RESOLVED!

Remember that you (OP) can RESOLVE your own threads.