LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-19-2010, 10:52 AM   #1
fgw
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.

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

Rep: Reputation: 163Reputation: 163
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:
Code:
uname -a
You can see the kernels you have installed by typing:
Code:
dpkg -l | grep "\-2.6."
You can remove them individually by typing:
Code:
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
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
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
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
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
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,377

Rep: Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108
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.
 
  


Reply

Tags
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 09:08 PM.

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