PDA

View Full Version : [ubuntu] Multiple Kernels in Grub



jskandhari
June 29th, 2008, 08:27 AM
:( I get all the updates my kernel also updates but the problem is my previous kernels are also present and ultimately i have appx 13 linux ubuntu options

please solution ne1 coz i am on a cleaniness drive and am having lots of time for next few weeks

Partyboi2
June 29th, 2008, 08:37 AM
You can remove the kernels you know longer want by opening up Synaptic Package Manager and doing a search for
linux-image
then remove the ones you know longer need.
I would also suggest leaving the last version before the current one you are using.

You can also change how many kernels are displayed at the grub menu by editing this part of your /boot/grub/menu.lst

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=2
More info here (http://users.bigpond.net.au/hermanzone/p15.htm#_howmanyall)

firebone
July 31st, 2009, 04:34 PM
You can remove the kernels you know longer want by opening up Synaptic Package Manager and doing a search for
linux-image
then remove the ones you know longer need.
I would also suggest leaving the last version before the current one you are using.

You can also change how many kernels are displayed at the grub menu by editing this part of your /boot/grub/menu.lst

More info here (http://users.bigpond.net.au/hermanzone/p15.htm#_howmanyall)

Can I just remove or do I need to choose remove all from the package manager?

Partyboi2
August 1st, 2009, 03:08 AM
Can I just remove or do I need to choose remove all from the package manager?
Just use the remove option. :)

drs305
August 1st, 2009, 03:22 AM
There is also a gui menu editor for grub called StartUp-Manager. It doesn't physically remove the kernels but you can decide how many you see, as well as being able to tweak many other aspects of the boot menu. All without manually editing the grub menu.lst file.

The post also has details of how to manually edit the file, and how to remove old kernels, if you prefer to do that.

For details, click the "SUM" link in my signature line.

firebone
August 1st, 2009, 11:35 AM
Thanks for the quick answers.