LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2010, 11:43 PM   #1
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Rep: Reputation: 19
Grub2 shows multiple entries for each of my quad-boot OS's.


So my grub menu is showing several selections for each of my OS's. In Ubuntu, my OS of choice for now, how can I access the grub and edit it.

Please tell me in baby-steps.

I would like to know the steps for console, but also I hope somebody can show me how to use Super Grub to do it.

Thanks
 
Old 11-19-2010, 01:36 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
I have also seen this with grub2. For example, grub2 will create 4 entries for booting Slackware, one for each kernel in Slackware's boot directory.
The only way I know of to prevent this is to:
1. First, add this line to the /etc/default/grub file: GRUB_DISABLE_OS_PROBER=true. This will prevent grub2 from adding other operating systems to your grub menu.
See this section of the Ubuntu grub2 tutorial:
https://help.ubuntu.com/community/Gr...b%20%28file%29
2. Then you need to create custom boot entries for the operating systems that you want to be included in your grub menu. To do that you need to add custom menu entries in the /etc/grub.d/ directory. To do that see this: https://help.ubuntu.com/community/Gr...Menu%20Entries
That whole tutorial is a good introduction to grub2.
For reference, here is my custom boot entry in /etc/grub.d/ for booting Slackware's generic-smp kernel:
Code:
menuentry "Slackware32-13.1 on /dev/sda5" {
        set root=(hd0,5)
        linux  /boot/vmlinuz-generic-smp-2.6.33.4-smp root=/dev/sda5 ro 
        initrd  /boot/initrd.gz
}
Remember to run:
Code:
sudo update-grub
after making any changes to grub2 config files or after adding custom entries.

The only other option would be to remove unwanted entries from /boot/grub/grub.cfg. Note that this file says you are not supposed to edit it. It can be edited though. But the problem is that whenever Ubuntu updates it's kernel (which is often) the file will be overwritten and all of your edits will be replaced and you will need to edit the file again.
Custom boot entries in /etc/grub.d/ will persist after kernel updates.
I hope this has not confused you too much. Write back if you need more help.
If anyone else out there knows a better way to do this I would love to hear it.

I have not used the Super Grub Disc for quite some time, since I know to control grub2 myself. I do not know if the Super Grub Disc has any options for this.

Last edited by tommcd; 11-19-2010 at 01:44 AM.
 
Old 11-19-2010, 07:52 AM   #3
Bhakta Neal
Member
 
Registered: Jul 2010
Location: Big Island, Hawaii
Distribution: Kubuntu10.04
Posts: 248

Original Poster
Rep: Reputation: 19
Hey thanks a ton tommcd.
I will report on the results, but likely I can get to it tomorrow.
 
  


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
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 03:39 PM
Grub2 with Ubuntu 10.04 adding additional OS's mtooze Linux - Newbie 6 09-11-2010 03:52 PM
Grub2 boot entries don't change adunamia Linux - Software 10 02-09-2010 04:35 PM
Unable to boot Fedora 9 (Multiple OS's, hard drive reversal, grub confused) rcx11 Fedora - Installation 2 11-07-2008 08:56 PM
using grub to boot multiple linux os's Smerk Linux - Software 9 03-21-2003 01:07 AM


All times are GMT -5. The time now is 05:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration