Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-19-2010, 10:52 AM   #1
LQ Newbie
Registered: Nov 2003
Distribution: Ubuntu, CentOS, FreeNAS
Posts: 26

Rep: Reputation: 15
Grub menu is getting full?

I am using grub 1.97beta. I have Ubuntu 9.10 installed. The grub menu list is full of Ubuntu 9.10 with two listings for each Linux kernel version. I really have no need to go back to older kernel versions. Can those be eliminated? How? I didn't find anything in the grub wiki but that doesn't mean I didn't miss it some how.

Old 02-19-2010, 11:11 AM   #2
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
There's a lot of ways to do it from manaully editing your configs and removing the files to purging them from apt. I recommend the later though.

You can see which is your current version by typing:
uname -a
You can see the kernels you have installed by typing:
dpkg -l | grep "\-2.6."
You can remove them individually by typing:
apt-get remove --purge package-name-revision
I suggest leaving the two most recent kernels (the one you're running and previous one.)
Old 02-19-2010, 11:15 AM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735Reputation: 735
Simply edit the config file and remove the entries you don't need.

The config file is typically "/boot/grub/menu.lst"
Old 02-19-2010, 11:36 AM   #4
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze SMP AMD64
Posts: 3,255

Rep: Reputation: 125Reputation: 125
You should be able to use Synaptic Package Manager to remove any unwanted kernels. That will also remove them from grub. It's also the safest way. Like rweaver, I suggest you always keep 2 kernels active.
Old 02-19-2010, 08:13 PM   #5
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,894

Rep: Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358Reputation: 1358
Given that you are using a "distro," and therefore maintaining your kernel images et al using that mechanism, usually the best way to handle things is to manually remove the "older kernel version" packages that you no longer require. This will not only remove them from the Grub menu, but also inform the package-system that these kernels are no longer needed.

You see, it's quite routine for kernels to be flagged as ... "the fact that I have just installed version x+1 of this package does not mean that version x can safely be replaced." (For what are fairly-obvious reasons.) Kernels stay around until you explicitly remove them. Since you're relying upon a distro and its package-system, you should stick with that... just tell it what you want to do.


grub, menulst, ubuntu910

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
grub drops to grub prompt on boot, but can use commands to find menu... fix? greenmuzz Linux - Software 7 06-07-2009 03:07 AM
Grub Menu doesn't reflect menu.lst file fatsheep Linux - Software 4 06-11-2007 01:29 PM
GRUB menu.lst/grub.conf file with multiple partitions dasy2k1 Linux - General 1 04-19-2007 08:42 AM
/grub/menu.lst file disappeared but computer still boots (grub) rrrssssss Linux - General 5 04-08-2007 09:02 AM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration