Link to home
Start Free TrialLog in
Avatar of mark_667
mark_667

asked on

Too many kernel images on boot

I'm using Kubuntu Dapper Drake (a great system) for home use and have updated it regularly. However, I now have several old Kernel images displayed in the Grub boot manager. I'm never going to use them but have no idea how to get rid of them? The simpler and more straight-forward the solution the better.
Avatar of pjedmond
pjedmond
Flag of United Kingdom of Great Britain and Northern Ireland image

Edit your /boot/grub/grub.conf

Obviously be careful with what you delete but there will be an entry block associated with each kernel version. You can delte the 'blocks in this file associated with the kernels that you no longer whic to use. Obviously do this with care as you can potentially make your system unbootable doing this.

You can then delete the associated files in the /boot/ directory. Again, do with care.

(   (()
(`-' _\
 ''  ''
Avatar of rindi
You could just comment out the unwanted entries in grub.conf with the # and then once you are satisfied everything works delete these lines.

As pjedmond advises, also delete the associated files in the /boot folder, and don't forget the the associated /lib/modules/NotWantedKernelVersions, as these can use up a lot of space.
ASKER CERTIFIED SOLUTION
Avatar of slyong
slyong

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mark_667
mark_667

ASKER

I couldn't find a grub.conf file and I checked the 'show hidden files' option. I did, however, find the menu.lst sylong mentioned. He gets the points as he gave the easiest way of doing it though all responses are much appreciated.