Fedora Linux Support Community & Resources Center
  #1  
Old 19th June 2009, 04:57 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
Grub2

Hey all. As well as being a Fedora fan I'm an Ubuntu fan. This morning I installed Ubuntu 9.10 Alpha 2 on my multi-boot laptop. Now I'm in a slight bit of trouble. This release of Ubuntu brings with it grub2. With grub2 there is no more /boot/grub/menu.lst. There is, however, /boot/grub/grub.cfg, a file that is not to be edited manually. So, after googling and searching the Ubuntu forum I haven't yet been able to figure out exactly what I need to do to add Fedora and the other OS's to the boot menu. I'm wondering if anyone has had any experience with grub2? I believe that it is being used with other debian based distros for their alphas and betas also so I thought I may have a chance of bumping into someone. Anyone?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #2  
Old 19th June 2009, 05:35 PM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,324
Uhm ... Can you post the contents of grub.cfg?
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
  #3  
Old 19th June 2009, 05:54 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
Nah. Thanks for the reply Dan but I got annoyed once I found out that Evolution wasn't going to work, blew it away and re-installed 9.04. For what it's worth, grub.cfg is nothing like what you or I are used to seeing. Very different.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #4  
Old 19th June 2009, 05:57 PM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,324
Well, CRUD! So much for my edification! <....>
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
  #5  
Old 19th June 2009, 06:03 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
Yep. I can be very impatient sometimes. I searched Google and the forums for answers and looked at the grub pages too. Nothing. Then the Evolution thing pushed me over the top. I was standing outside the window on a ledge for a short while
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #6  
Old 20th June 2009, 11:42 PM
RahulSundaram Online
Registered User
 
Join Date: May 2005
Posts: 3,572
Hi,

Yes. GRUB2 is a VERY different program from GRUB 1 and has a completely different configuration file

http://velohacker.com/fedora-notes/boot-tales-woo-ooh/
__________________
Rahul
http://fedoraproject.org/wiki/RahulSundaram
Reply With Quote
  #7  
Old 20th June 2009, 11:58 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
Hey Rahul. Thanks for the link. I do want to learn about it. I'll use it to become a Grub2 legend, at least in my own mind.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #8  
Old 21st June 2009, 02:24 AM
Demz
Guest
 
Posts: n/a
interesting read. thanks for the Link Rahul
Reply With Quote
  #9  
Old 21st June 2009, 02:35 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Well, there seem to be 132 files in /boot/grub in grub 2. Sigh, I might just switch to GAG for anything I'm multibooting. I don't see a config file, though I assume one is around somewhere.

Looks like it'll be a pain to configure after the fact--that is, if you want to add an O/S afterwards.

Ah, apparently there's an update-grub script that will generate a config file.

https://wiki.kubuntu.org/Grub2

Oh well, I only multiboot on a few machines now, mostly I use VMs these days.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #10  
Old 19th August 2009, 08:47 PM
jerboyd's Avatar
jerboyd Offline
Registered User
 
Join Date: Jun 2008
Posts: 193
linuxfedorafirefox
i had the same problem and fixed it like this.

in ubuntu 9.1 do
sudo apt-get install grub
sudo update-grub

this will install grub and generate a menu.lst file. than download "Super Grub Disk" from this location and burn it to a cdrom
http://www.supergrubdisk.org/index.php?pid=5
reboot your machine from the cdrom and use Super Grub Disk to reinstall grub to the MBR of your hard disc. then you can reboot into fedora and copy the boot entry from your ubuntu installations menu.lst to your fedora installations menu.lst. now you will be able to boot into ubuntu if you choose and your grub will be restored.

hope this helps
__________________
Jeremy Boyd
Reply With Quote
  #11  
Old 18th September 2012, 09:24 PM
CarlosMosca Offline
Registered User
 
Join Date: Dec 2009
Posts: 34
linuxfirefox
Re: Grub2

I have been trying to change boot parameters with grub2-mkconfig and grub2-mkconfig -o /boot/grub2.cfg only to find out my settings aren't being saved. After looking into a solution myself, I found out there are one too many 'grub' files around my system:

grub2.cfg on /boot
grub.cfg on /boot/grub2
grub2.cfg on /etc
grub on /etc/sysconfig
grub on /etc/default
grub on /etc/bash_completion.d

Can somebody provide a SOLUTION on how to remove unnecessary configuration files so that the one being read gets updated with the user's changes properly?

Thank You.
Reply With Quote
  #12  
Old 18th September 2012, 09:36 PM
dd_wizard's Avatar
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 1,409
linuxfirefox
Re: Grub2

Quote:
Originally Posted by CarlosMosca View Post
I have been trying to change boot parameters with grub2-mkconfig and grub2-mkconfig -o /boot/grub2.cfg only to find out my settings aren't being saved. After looking into a solution myself, I found out there are one too many 'grub' files around my system:

grub2.cfg on /boot
grub.cfg on /boot/grub2
grub2.cfg on /etc
grub on /etc/sysconfig
grub on /etc/default
grub on /etc/bash_completion.d

Can somebody provide a SOLUTION on how to remove unnecessary configuration files so that the one being read gets updated with the user's changes properly?

Thank You.
From looking at my F17 install:

/boot/grub2.cfg - Not present. As far as I know, that file shouldn't be there. However, there are grub and grub2 directories in /boot that should be there.

/boot/grub2/grub.cfg - That's the one that's built by grub2-mkconfig and grubby. You definitely need that one.

/etc/grub2.cfg - A symbolic link to /boot/grub2/grub.cfg. I'm not sure who uses it, but it should be there.

/etc/default/grub - Stores settings used to build /boot/grub2/grub.cfg. Edit this file to make changes to /boot/grub2grub.cfg by running grub2-mkconfig.

/etc/bash_completion.d/grub - Functions related to bash_completion for grub2. Leave it alone.

There are a number of files in /etc/grub.d that control how the grub.cfg file is built by grub2-mkconfig, as well.

dd_wizard

Last edited by dd_wizard; 18th September 2012 at 09:39 PM.
Reply With Quote
  #13  
Old 18th September 2012, 11:12 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,019
linuxchrome
Re: Grub2

The issue is that grub will look for /boot/grub2/grub.cfg

You made it /boot/grub2/grub2.cfg

Redo your change with -o /boot/grub2/grub.cfg and it should be fine.
Reply With Quote
  #14  
Old 18th September 2012, 11:17 PM
dd_wizard's Avatar
dd_wizard Offline
Registered User
 
Join Date: Sep 2009
Posts: 1,409
linuxfirefox
Re: Grub2

Thanks for pointing me back to the OP, smr54, you're almost right. The grub2-mkconfig command CarlosMosca used actually created that unnecessary /boot/grub2.cfg file. Your solution is correct, however.

dd_wizard
Reply With Quote
  #15  
Old 19th September 2012, 12:39 AM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 5,019
linuxchrome
Re: Grub2

Actually, the OP of this reboot of the thread should have started a new thread, rather than revive this one which had its last post in 2009.
Reply With Quote
Reply

Tags
grub2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub2 duke11235 Using Fedora 8 13th October 2009 02:14 PM
Grub2 and depreciated vga= VernDog Using Fedora 0 14th September 2009 04:11 AM
Grub2 as default in F12? Demz Fedora Focus 2 9th June 2009 06:12 AM
Grub2 on Fedora Core 4 Computer Guru Using Fedora 8 8th November 2005 11:58 AM
grub2 problems nacchrist Installation and Live Media 7 14th May 2005 01:43 AM


Current GMT-time: 23:53 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat