Removing old kernels
Hi,
I'm pretty sure I know what I need to do but want to double check first. I am not able to upgrade because my boot disk is full. I need to remove the unused kernels. Here is what is currently in there. Code:
drwxr-xr-x 4 root root 3072 2011-12-30 11:36 . Code:
Linux websvr 2.6.24-23-server #1 SMP Wed Apr 1 22:14:30 UTC 2009 x86_64 GNU/Linux Is it OK to delete anything not ending in -23? (aside from grub, lost+found, etc.) Finally, does anyone know why this is happening? Thanks |
In principle, yes, you can 'delete anything not ending in -23'. The uname command you ran shows which kernel is presently running, which is not the most recent of the installed kernels. You will probably need to update the bootloader config file to make the newly installed/upgraded kernel the default, otherwise your upgrade is a waste of time, as it appears earlier upgrades have been.
--- rod. |
I would suggest to use the package manager from your distribution.
Kind regards |
On this version of Ubuntu 8.04.4 it still uses the config file menu.lst
In that file is this section Code:
title Ubuntu (2.6.24-23-server) |
If that is the only entry, then that should do the trick. In distros I've used, the package manager usually adds a new entry, then updates the 'default' setting to point to the entry for the newly installed version. The default value of 'default' is zero, meaning the 'first' entry (confused yet?). I suggest you use that model, keeping the entry for the presently working version, and add a new entry for the new version, and leave the default as the current version. When you've convinced yourself that the new version works, make it the default.
--- rod. |
Certainly do it from Synaptic - and use the "totally remove" (or whatever, I don't have Ubuntu handy) option to get rid of modules and ancillary bits and pieces.
However I suspect you are on a losing cause. Later Ubuntu will require quite a bit more space in /boot; and will fail even if you have plenty but not what the installer has been programmed to determine "enough". And no, I can't recall what that was. But I'd just resize that partition. Coming from a gentoo background I tended to have a merely adequate sized /boot. Now I just go with the ludicrous requirements of the various distros - Fedora demand half a Gig for example. |
Install and use 'ubuntu-tweak' program from synaptic. Go to 'package cleaner' > 'clean kernels'. It should work.
|
for ubuntu: sudo apt-get remove "your old kernel name"
for fedora: rpm -qa | grep kernel; and then yum remove "your old kernel name" |
Thanks for you replies everyone
|
All times are GMT -5. The time now is 06:02 AM. |