Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd June 2006, 12:31 AM
Badut Offline
Registered User
 
Join Date: Aug 2004
Posts: 38
Simple but interesting grub.conf question

Hi all,

If I have FC5 installed on /dev/hda2 and Ubuntu Dapper installed on /dev/hda11 each would have its own /boot/grub directory right? Which means there are two grub.conf files: one for FC5 and one for Dapper.
So my question is:
How does grub know which grub.conf file to use?
And how do I change its behaviour to read the grub.conf I want it to?

I know they are not somehow synchronised cause I'm in FC5 right now and my grub.conf looks like this:

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,1)
#          kernel /boot/vmlinuz-version ro root=/dev/hda2
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.16-1.2122_FC5)
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.16-1.2122_FC5 ro root=LABEL=/1
        initrd /boot/initrd-2.6.16-1.2122_FC5.img
title Fedora Core (2.6.16-1.2111_FC5)
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.16-1.2111_FC5 ro root=LABEL=/1
        initrd /boot/initrd-2.6.16-1.2111_FC5.img
title Windows XP SP2
        rootnoverify (hd0,0)
        chainloader +1
But when I booted the computer just now, the grub menu had Ubuntu items in it.
Reason I ask is because I just installed Dapper and it wrongly assumed that it should be the default in the grub menu.
Reply With Quote
  #2  
Old 3rd June 2006, 12:44 AM
brandor's Avatar
brandor Offline
Registered User
 
Join Date: May 2005
Posts: 534
Whichever grub-install was preformed last will point to its appropriate grub.conf.

You installed ubuntu last, so the grub thats in your MBR is pointing to the ubuntu grub.conf.
Reply With Quote
  #3  
Old 3rd June 2006, 12:47 AM
Badut Offline
Registered User
 
Join Date: Aug 2004
Posts: 38
Quote:
Originally Posted by brandor
Whichever grub-install was preformed last will point to its appropriate grub.conf.

You installed ubuntu last, so the grub thats in your MBR is pointing to the ubuntu grub.conf.

Thanks that makes sense. How would I go about getting grub to look at my FC5 grub.conf again?
Reply With Quote
  #4  
Old 3rd June 2006, 01:55 AM
jim's Avatar
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176
add a line to tthe grub.conf pointing to the FC5 install

like so...
just a example
Quote:
title Fedora Core (2.6.16-1.2122_FC5)
root (hd0,5)
kernel /vmlinuz-2.6.16-1.2122_FC5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.16-1.2122_FC5.img
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #5  
Old 3rd June 2006, 02:06 AM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,210
Simply go into Ubuntu's grub.conf and copy in the Fedora boot information (the lines from title thru initrd). Look at how your Ubuntu is booted. Since they're on different drives, Ubuntu may be shown as (hd0,x) in it's grub.conf . Well, if that's the case, change the references on Fedora to (hd1,1) since if Ubuntu thinks it's on hd0, then it's going to think Fedora's on hd1. Of course, if Ubuntu recognizes it's (hd1,x), then your Fedora is fine to copy/paste as is.

Boy, THAT's clear as mud! - Sorry, but I'm having trouble with words tonight. Anyway, one distro's on hd1 and the other is on hd0. Just make sure they aren't both looking at the same hard drive.

Final thought before I kill my last brain cell with this Saranac Mountain Ale... after you type in the information at the bottom of the grub.conf, hit 'enter' to add a blank line. If not, there can be problems with all the info being read properly.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #6  
Old 3rd June 2006, 02:06 AM
Badut Offline
Registered User
 
Join Date: Aug 2004
Posts: 38
Quote:
Originally Posted by jim
add a line to tthe grub.conf pointing to the FC5 install

like so...
just a example
Thank you Jim, but you might have misunderstood my question.
I was asking how to get grub to look at the grub.conf in /dev/hda2 instead of /dev/hda11

My guess is that I need to reinstall grub somehow.
Reply With Quote
  #7  
Old 3rd June 2006, 02:07 AM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,210
Jim beat me by 11 minutes??? Wow, back to typing class for Bob!
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #8  
Old 3rd June 2006, 02:19 AM
jim's Avatar
jim Offline
Retired Community Manager & Avid Drinker Of Suds
 
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176
ok um back up the copy you have and copy the old grub (the one you want ) and move it to whre Ubuntu is reading grub from
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile

please remember to say if you problem was solved

Did you get your id10t award today?
Reply With Quote
  #9  
Old 4th June 2006, 06:20 AM
Badut Offline
Registered User
 
Join Date: Aug 2004
Posts: 38
Quote:
Originally Posted by Badut
Thanks that makes sense. How would I go about getting grub to look at my FC5 grub.conf again?
Ok, for future reference, here is how I did it.
Boot into FC5
Log in as root
go to /sbin
Type:
Code:
grub-install /dev/<xxx>
Where <xxx> is the device you boot from. In my case it was /dev/hda

Once that's done, I followed what Jim and Bob said to get the grub.conf the way I like it.

PS: Thanks to Brandor, Jim and Bob.

Last edited by Badut; 4th June 2006 at 06:22 AM.
Reply With Quote
Reply

Tags
grubconf, interesting, question, simple

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
An interesting question. stephanie.steve Using Fedora 4 23rd March 2008 04:05 AM
simple grub question 1jackjack Using Fedora 10 28th June 2007 11:32 PM
grub.conf quick kernel boot question ride153 Servers & Networking 3 19th May 2006 04:07 AM
grub.conf question kevin_af Using Fedora 6 20th June 2005 11:46 PM


Current GMT-time: 14:35 (Sunday, 19-05-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