excessive /boot entries
info at alvin.be
Wed Apr 1 09:59:52 UTC 2009
On Wednesday 01 April 2009 11:53:54 Lisi Reisz wrote:
> On Wednesday 01 April 2009 09:38:49 Alvin wrote:
> > On Wednesday 01 April 2009 10:23:59 Lisi Reisz wrote:
> > > On investigation I found that there are about 60 kernels in /boot(1),
> > > from which I imagine that menu.lst has retrieved its very long list.
> > > Can I safely remove most of the entries in /boot (rm foo), and then
> > > edit menu.lst, and if so, which do I need to keep. Not only are there
> > > more kernels than seem necessary (or desirable!), but each seems to
> > > have too many options.
> > >
> > > So: Which entries should I keep?
> > Keep in mind that these kernels are all installed packages. Keep the last
> > one, or the last two and just purge the rest. The menu.lst will be
> > adapted and you will gain some disk space.
> > For example:
> > $ sudo apt-get purge linux-headers-2.6.27-14
> > linux-headers-2.6.27-14-generic linux-image-2.6.27-14-generic
> > linux-restricted-modules-2.6.27-14-generic
> > Of course, do not remove your running kernel. You can check your kernel
> > version with 'uname'.
> How do I find out what the package name of each kernel is? Or what else am
> I doing wrong?(1) I have inserted blank lines between attempts for the sake
> of legibility.
I use bash-completion on '$ sudo apt-get purge linux- ...<TAB><TAB>...' and
cut and paste from that list.
This works perfectly, but there are probably better methodes.
I think "$ sudo apt-get autoremove" works too.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 197 bytes
Desc: This is a digitally signed message part.
More information about the kubuntu-users