LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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: 167Reputation: 167
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: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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 Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
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
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration