Removing Old Kernels

Leonard Chatagnier lenc5570 at sbcglobal.net
Fri Dec 11 05:47:07 UTC 2009



--- On Thu, 12/10/09, Emil Payne <EHSPayne at angelwoodpines.org> wrote:

> From: Emil Payne <EHSPayne at angelwoodpines.org>
> Subject: Re: Removing Old Kernels
> To: "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com>
> Date: Thursday, December 10, 2009, 10:58 PM
> 
> 
> Leonard Chatagnier wrote:
> > I'm not an fan of UM so don't know about it but I
> think it's safe to say that all package managers will leave
> what is installed until you remove/purge the package
> including linux-images.  Someone will correct me if I'm
> wrong to be sure.
> > Leonard Chatagnier
> > lenc5570 at sbcglobal.net
> > 
> > 
> 
> What would be nice is a grub entry for the number of
> kernels to keep.
> So if you said "3" and had only two, it would leave those
> and add a
> third, but if you had three then it would delete the oldest
> and add the
> new one.
>
Ok, then go to launchpad and file a wish list bug report and maybe the developers will program it that way but I doubt it.
The way it works is that grub will retain in the menu.lst or grub.conf file(hope I got that right) every kernel you have installed until you remove/purge a kernel and then run update-grub as sudo or root. Besides, there is no harm if you retain all the kernels released in a Ubuntu version at least if you partition is from 20-30 GB in size and they are good safety factors in case some kernel fails. What's so hard/unreasonable to learn how to do it the Ubuntu/Linux way. I believe most if not all Linux distro use grub and will have to be handled the same way. Somewhere in the past I think I ran across something that limited the number of kernels you could install(back in the grub1 days) and it would have worked as you suggest I think. Unless you are totally out of disk space it is not an issue. Just ignore it.

Leonard Chatagnier
lenc5570 at sbcglobal.net
 
>




More information about the ubuntu-users mailing list