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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-19-2010, 10:52 AM
|
#1
|
|
LQ Newbie
Registered: Nov 2003
Distribution: Ubuntu, CentOS, FreeNAS
Posts: 26
Rep:
|
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
|
|
|
|
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: 
|
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:
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.)
|
|
|
|
02-19-2010, 11:15 AM
|
#3
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
Simply edit the config file and remove the entries you don't need.
The config file is typically "/boot/grub/menu.lst"
|
|
|
|
02-19-2010, 11:36 AM
|
#4
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,153
Rep: 
|
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.
|
|
|
|
02-19-2010, 08:13 PM
|
#5
|
|
Senior Member
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 4,554
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:06 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|