Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LILO Menu

Status
Not open for further replies.

shrubble

MIS
Jul 23, 2003
300
US
Prolly an easy one-

If I've installed a more current kernel on my RedHat box:

a) How do I remove the older kernels from the LILO boot menu?

-and-

b) How do I (or should I or can I) completely remove the older kernels from the machine?

deletion mistake
no I can't recover that
you didn't save it

-Shrubble
 
Edit lilo.conf then run /sbin/lilo to recompile. Not sure where the directory is but if you search for the kernel-2.x.x you should be able to find it. I always keep the last working kernel on my system in case something goes wrong and I can return to it.
 
I use grub but the process should be pretty much the same. look in /boot for a directory called lilo. In my case there is /boot/grub/grub.conf so I would guess that there may be a /boot/lilo/lilo.conf. Once you find it, you can delete the title blocks you don't want. Each title block has the same name as the kernel version it loads. In /boot you will see files with numbers that represent the different kernel versions. Each kenel version has four files that start with config, initrd, System.map and vmlinuz. As franklin suggests, you don't want to delete the files for the current version or the last one that worked just in case you need to fall back. If you compiled a kernel then you will need to delete the source directories also. You might wanna take a peek in /usr/src. This will have the original source code for the kernel that came with your distro.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top