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

3rd June 2006, 12:31 AM
|
|
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.
|

3rd June 2006, 12:44 AM
|
 |
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.
|

3rd June 2006, 12:47 AM
|
|
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?
|

3rd June 2006, 01:55 AM
|
 |
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?
|

3rd June 2006, 02:06 AM
|
 |
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.
|

3rd June 2006, 02:06 AM
|
|
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.
|

3rd June 2006, 02:07 AM
|
 |
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.
|

3rd June 2006, 02:19 AM
|
 |
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?
|

4th June 2006, 06:20 AM
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 14:35 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|