General discussion

Locked

HOW TO ELIMINATE LINUX KERNELS FROM LILO

By servicio.herrera ·
I have several Linux boot options installed in my RedHat 7.3 LILO. how could I delete some of them?
When I run the RedHat update agent it shows that I hvae to increase my boot partition in at least 2MB. I think I can free some area from the boot partition by eliminating the kernells that I wont need any more.

Is it possible?

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

HOW TO ELIMINATE LINUX KERNELS FROM LILO

by Mike O In reply to HOW TO ELIMINATE LINUX KE ...

If you're not using those kernels, then yes, I imagine it's safe to delete them.

Then you need to edit lilo.conf to change the menu options. I don't recall specifically how to do this, but from what I've read on it, it's a fairly straightforward procedure. I believe it can be found at /etc/lilo.conf. If in doubt, check out lilo's man page.

Good luck!

Collapse -

HOW TO ELIMINATE LINUX KERNELS FROM LILO

by servicio.herrera In reply to HOW TO ELIMINATE LINUX KE ...

Poster rated this answer

Collapse -

HOW TO ELIMINATE LINUX KERNELS FROM LILO

by lonpi In reply to HOW TO ELIMINATE LINUX KE ...

for each kernel, there is an 'image' tag in /etc/lilo.conf:
e.g.
image=/boot/vmlinuz-2.4.2-2

deleting one or more of them should remove that image as a boot option.
after editing the /etc/lilo.conf file, type
/sbin/lilo at the prompt for changes to be effective.

Collapse -

HOW TO ELIMINATE LINUX KERNELS FROM LILO

by servicio.herrera In reply to HOW TO ELIMINATE LINUX KE ...

Poster rated this answer

Collapse -

HOW TO ELIMINATE LINUX KERNELS FROM LILO

by jcmcintyre In reply to HOW TO ELIMINATE LINUX KE ...

Follow the procedure in answer two,k then
delete any unused files from /boot. There will
be old System.map files, and vmlinuz files that
youcan get rid of if you don't use them anymore

Cheers Jim

Collapse -

HOW TO ELIMINATE LINUX KERNELS FROM LILO

by servicio.herrera In reply to HOW TO ELIMINATE LINUX KE ...

Poster rated this answer

Collapse -

HOW TO ELIMINATE LINUX KERNELS FROM LILO

by Ryman2 In reply to HOW TO ELIMINATE LINUX KE ...

Open up your lilo.conf file located in the /etc directory. Take note of the *.img files of the kernels you no long wish to keep. You can modify your lilo.conf file to prevent them from showing at booting, but this will not remove the kernel files.To do so, you can delete the .img files and the associated vmlinux-* files located in the /boot directory of the kernels you wish to remove. Use extreme caution when doing this though... it can be easy to mess up your system. Run good backups before doing so. Hope that helps.

Collapse -

HOW TO ELIMINATE LINUX KERNELS FROM LILO

by servicio.herrera In reply to HOW TO ELIMINATE LINUX KE ...

Poster rated this answer

Collapse -

HOW TO ELIMINATE LINUX KERNELS FROM LILO

by servicio.herrera In reply to HOW TO ELIMINATE LINUX KE ...

This question was closed by the author

Back to Linux Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums