?
Solved

Too many kernel images on boot

Posted on 2006-07-14
4
Medium Priority
?
292 Views
Last Modified: 2013-12-16
I'm using Kubuntu Dapper Drake (a great system) for home use and have updated it regularly. However, I now have several old Kernel images displayed in the Grub boot manager. I'm never going to use them but have no idea how to get rid of them? The simpler and more straight-forward the solution the better.
0
Comment
Question by:mark_667
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 22

Expert Comment

by:pjedmond
ID: 17109492
Edit your /boot/grub/grub.conf

Obviously be careful with what you delete but there will be an entry block associated with each kernel version. You can delte the 'blocks in this file associated with the kernels that you no longer whic to use. Obviously do this with care as you can potentially make your system unbootable doing this.

You can then delete the associated files in the /boot/ directory. Again, do with care.

(   (()
(`-' _\
 ''  ''
0
 
LVL 88

Expert Comment

by:rindi
ID: 17110028
You could just comment out the unwanted entries in grub.conf with the # and then once you are satisfied everything works delete these lines.

As pjedmond advises, also delete the associated files in the /boot folder, and don't forget the the associated /lib/modules/NotWantedKernelVersions, as these can use up a lot of space.
0
 
LVL 24

Accepted Solution

by:
slyong earned 200 total points
ID: 17118147
In Ubuntu/Kubuntu:

Use your favorite editor to edit the /boot/grub/menu.lst file. I use gedit and type the following command.
$ sudo gedit /boot/grub/menu.lst

or better still remove the unused/old Linux kernels:

go into synaptic. and search "linux-image". select all installed ones
but the latest and the press apply.
(Installed packages' checkboxes are gray)
0
 
LVL 1

Author Comment

by:mark_667
ID: 17121408
I couldn't find a grub.conf file and I checked the 'show hidden files' option. I did, however, find the menu.lst sylong mentioned. He gets the points as he gave the easiest way of doing it though all responses are much appreciated.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month10 days, 7 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question