HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free and registered users see less advertising! If you just want to browse through the existing questions, just select the forum that you want to visit from the selection below. Otherwise, click here to register!. We highly recommend that you print a copy of our Guide for New Members. Enjoy!

deleting old kernel

Hi,
I just upgraded my kernel to 2.4.25-1 using Debian Sarge, and everything seemed to go fine. I&#039;m wondering how I would go about uninstalling my old one, because I can still boot into it. Do I simply uncomment the old one from the grub menu.lst, or do I need to do something else as well.

Re:deleting old kernel

If you just don&#039;t want to look at them anymore, then deleting their entries is fine. In order to delete the actual kernel, delete the kernel image (eg, /boot/vmlinuz or /boot/vmlinux-2.4.25-etc... ). Probably easy enough to do both.

As for the first two entries, the second entry puts the system in single-user mode which is handy for debugging stuff when your system is hosed. If you don&#039;t want to use, this, then delete the single user one.

Re:deleting old kernel

Yes you can. I&#039;ve never done it though. You may want to rename it to something like /usr/src/oldlinux until you&#039;re sure you can compile stuff though. Those are your kernel headers, and anything that needs to make direct calls to the kernel needs them. If you don&#039;t often compile kernel-level software then you should be alright either way.

Re:deleting old kernel

Ok, found another newer kernel so now I have 3.
I&#039;m in /boot, and there&#039;s a system.map, config, vmlinuz-version number for each of the three kernels, but only one vmlinuz. Can I delete vmlinuz, or only the one with the kernel numbers, and do I just move them to the trash, or is there something else I need to do.

Re:deleting old kernel

[quote author=Dswissmiss link=board=2;threadid=9057;start=0#msg81959 date=1082340964]
Ok, found another newer kernel so now I have 3.
I&#039;m in /boot, and there&#039;s a system.map, config, vmlinuz-version number for each of the three kernels, but only one vmlinuz. Can I delete vmlinuz, or only the one with the kernel numbers, and do I just move them to the trash, or is there something else I need to do.

thanx
Dswissmiss
[/quote]

You can delete the vmlinuz and then point your lilo or grub to boot the one of the other kernels: here is an example: