LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 12-13-2009, 07:29 AM   #1
dreamweaver547
LQ Newbie
 
Registered: Nov 2009
Location: England
Distribution: Ubuntu 9.10, OpenSUSE 11.2
Posts: 28

Rep: Reputation: 15
GRUB 2 - multiple entries


After recent updates GRUB 2 has made multiple entries, even though I'm asking it to keep the existing version of GRUB.

So now I have three entries in total for Ubuntu + recovery mode.

Is there a way to stop this happening and an easy way to remove these entries? I am currently dual boot XP/Ubuntu 9.10.
 
Old 12-13-2009, 07:59 AM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by dreamweaver547 View Post
After recent updates GRUB 2 has made multiple entries, even though I'm asking it to keep the existing version of GRUB.

So now I have three entries in total for Ubuntu + recovery mode.

Is there a way to stop this happening and an easy way to remove these entries? I am currently dual boot XP/Ubuntu 9.10.
You have 3 entries for 3 different kernels I suppose ?
What if the latest kernel fail on you're computer ?
Removing the the entries sudo su enter
password enter
nano /boot/grub/grub.cfg and remove the kernel entries
after wards you can remove the kernel too.
But it does take so much space.
Beside that I think that UBUNTU keep 4 kernels by default.
You have to keep one at least.

Last edited by ronlau9; 12-13-2009 at 08:00 AM.
 
Old 12-13-2009, 12:01 PM   #3
dreamweaver547
LQ Newbie
 
Registered: Nov 2009
Location: England
Distribution: Ubuntu 9.10, OpenSUSE 11.2
Posts: 28

Original Poster
Rep: Reputation: 15
These are the following entries in nano /boot/grub/grub.cfg:

menuentry "Ubuntu, Linux 2.6.31-16-generic"

menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)"

menuentry "Ubuntu, Linux 2.6.31-15-generic"

menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)"

menuentry "Ubuntu, Linux 2.6.31-14-generic"

menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)"


Can I remove 15 & 14? However in the above file path it says DO NOT EDIT THIS FILE so is there a better way of doing this?
 
Old 12-13-2009, 12:07 PM   #4
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
No no

you see you still have older kernels installed
go to synaptic pkg manager and hit the search button

enter "Linux 2.6.31-14-generic"
into search box and hit it

click to uninstall 14, and 15
use completely remove

it will also free up about 200MB off your hdd
you dont need these kernels as their old

after you remove them
close synaptic
when they uninstalled it should have run update-grub

if not, open a terminal and become root
and run update-grub

sudo update-grub
 
1 members found this post helpful.
Old 12-13-2009, 12:30 PM   #5
dreamweaver547
LQ Newbie
 
Registered: Nov 2009
Location: England
Distribution: Ubuntu 9.10, OpenSUSE 11.2
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks- this has done the trick. I'm wondering why this happened in the first place as I think there were changes that took place after Update Manager ran yesterday.

Additionally there is another entry I would like to remove:

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8

}

(only the one in bold). In Synaptic there is only "Memory test (memtest86+)", so I'not sure how to remove the bold entry.
 
Old 12-13-2009, 12:32 PM   #6
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
read here about customizing grub2 grub.cfg
https://wiki.ubuntu.com/Grub2#Removi...rom%20Grub%202
 
1 members found this post helpful.
  


Reply


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
multiple dev entries per drive daveofnf Linux - Enterprise 1 12-23-2008 02:55 PM
Multiple GRUB entries BrianPritchard Linux - Newbie 1 11-17-2008 09:40 AM
Hacked ? Multiple who entries...... budword Linux - Security 4 09-06-2007 07:49 PM
gnucash: change multiple entries pixellany Linux - Software 0 05-25-2007 08:30 PM
Multiple Kernel Entries in Grub ... Safe to Remove? SlowCoder Linux - Newbie 2 04-23-2007 10:31 PM


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