Operating System - Linux
1829557 Members
1620 Online
109992 Solutions
New Discussion

Re: How to delete old kernel from Redhat Fedora 9.0

 
SOLVED
Go to solution
Reynaldo Torres
Advisor

How to delete old kernel from Redhat Fedora 9.0

I have noticed that when I have upgraded the kernel still keeps the old versions in Fedora and it will not reboot from the most latest one. So, I would like to know what will be the best option to remove the old kernels once I know that the latest is working fine. I will really appreciated, and I will assign points to the best answers. I am new of this field, and most of my experience is in HP-UX, but I have installed for educational and learning purpose.
Reynaldo Torres
3 REPLIES 3
rmueller58
Valued Contributor

Re: How to delete old kernel from Redhat Fedora 9.0

Which boot loader are you using? Lilo or Grub?

either way you will need to modify your /etc/lilo.conf or /etc/grub.conf make sure you are pointing to the correct vmlinuz file. then run lilo -v to load the RAM images and reboot.
Reynaldo Torres
Advisor

Re: How to delete old kernel from Redhat Fedora 9.0

I am using Grub. I will really appreciated if you could be more specific on what I need to do in order to remove the old kernels without doing any damage to the most latest one.

Thansk again,

Reynaldo
Reynaldo Torres
Bojan Nemec
Honored Contributor
Solution

Re: How to delete old kernel from Redhat Fedora 9.0

Hi,

Check the file /boot/grub/grub.conf there must be a line which starts with kernel. See if it is pointing to the right version. I suggest you that you first make a separate entry in the menu with the new kernel and then try it. A rescue floppy is also a good thing beffore messing with boot loaders.
To preparethe boot flopy (before changing grub.conf) do:

fdformat /dev/fd0H1440
mke2fs /dev/fd0
mount -t ext2 /dev/fd0 /mnt/floppy
grub-install --root-directory=/mnt/floppy '(fd0)'
cp /boot/grub/grub.conf /mnt/floppy/boot/grub/grub.conf
umount /mnt/floppy

For the help about grub do:
info grub

To delete the old kernel (after tested the new one). If you have upgraded the kernel using the command:
rpm -ivh kernel-?new?.rpm
Remove the old kernel using:
rpm -e kernel-?old?.rpm

Bojan