LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-29-2009, 10:27 AM   #1
phantombudgie
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu 9.04
Posts: 2

Rep: Reputation: 0
Duplicate kernel entries of Ubuntu 9.04 in GRUB loader


The GRUB loader displays a list of available systems:

Ubuntu 9.04, kernel 2.6.28-15 generic
Ubuntu 9.04, kernel 2.6.28-15 generic (recovery mode)
Ubuntu 9.04, kernel 2.6.28-14 generic
Ubuntu 9.04, kernel 2.6.28-14 generic (recovery mode)
Ubuntu 9.04, kernel 2.6.28-11 generic
Ubuntu 9.04, kernel 2.6.28-11 generic (recovery mode)
Ubuntu 9.04, memtest 86+
Other operating systems:
Windows Vista (loader)


I assume that the kernel 2.6.28-11 and 2.6.28-14 entries are redundant, but how do I remove them? They appeared after Ubuntu updated itself.
 
Old 09-29-2009, 11:45 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,297

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by phantombudgie View Post
The GRUB loader displays a list of available systems:

Ubuntu 9.04, kernel 2.6.28-15 generic
Ubuntu 9.04, kernel 2.6.28-15 generic (recovery mode)
Ubuntu 9.04, kernel 2.6.28-14 generic
Ubuntu 9.04, kernel 2.6.28-14 generic (recovery mode)
Ubuntu 9.04, kernel 2.6.28-11 generic
Ubuntu 9.04, kernel 2.6.28-11 generic (recovery mode)
Ubuntu 9.04, memtest 86+
Other operating systems:
Windows Vista (loader)


I assume that the kernel 2.6.28-11 and 2.6.28-14 entries are redundant, but how do I remove them? They appeared after Ubuntu updated itself.
You need to edit your /boot/grub/menu.lst file.

Look for an entry like this:
Code:
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all
Remove the # from the last line and replace the number 7 with the number of entries you would like to see.

i.e. howmany=1 to see only one entry etc.

You need to be root in order to edit the file. Before editing the file, make a backup.

To edit the file, start a terminal and type:
Code:
sudo gedit /boot/grub/menu.lst
press enter input your root password, the file will then open and you can begin editing.

Last edited by {BBI}Nexus{BBI}; 09-29-2009 at 11:46 AM.
 
Old 09-29-2009, 01:45 PM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,634

Rep: Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519Reputation: 519
Quote:
You need to edit your /boot/grub/menu.lst file.
Um, yes but no.

The 2.6.28-11 and 2.6.28-14 entries are for backup if 2.6.28-15 doesn't work. You can hide them by editing menu.lst, but that won't remove them from the system. Open up Synaptic and remove some of the old kernels.
 
Old 10-01-2009, 06:21 PM   #4
phantombudgie
LQ Newbie
 
Registered: Aug 2009
Distribution: Ubuntu 9.04
Posts: 2

Original Poster
Rep: Reputation: 0
I tried both. The only things I could find in Synaptic relating to the old kernels were a couple of header files, which I removed. Rebooting still showed the same options.

Editing the menu.lst file to howmany=1 also did not change anything after rebooting. Maybe I needed to change a couple of other options in there?

I then edited the file further, deleting the entries at the end of the file containing information about the old kernels. This seems to have done the trick and my computer still works, so I assume I haven't done anything too silly!

Thanks for pointing me in the right direction.
 
  


Reply

Tags
grub


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel upgrade and grub entries stoppage Ubuntu 2 07-03-2009 07:32 PM
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 06:11 PM
duplicate entries in grub d_GeNeRiT Fedora 5 01-26-2006 07:22 AM
Ubuntu and GRUB loader miickEe. Ubuntu 11 08-23-2005 10:49 PM


All times are GMT -5. The time now is 06:49 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