LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-23-2005, 12:40 AM   #1
ChesterHemmer
LQ Newbie
 
Registered: Jan 2005
Location: Chicago, IL
Distribution: Fedora 3, Suse 10.1
Posts: 5

Rep: Reputation: 0
Multiboot two Fedora systems?


Hi all,

I'm having trouble doing a multiboot with two Fedora Core 3 installs. I have Fedora and 3 Windows installations booting just fine using grub. However, I'm trying to install another copy of Fedora 3 so I can have a 'test' system to screw with, but grub won't let the second one boot. Even when I select the second Fedora OS in the grub menu, it still boots up the first Fedora install.

Theoretically, if each Fedora install has its own /boot & root partitions, all I have to do is configure grub correctly and this should work, right? Below I've included my grub.conf file.

BTW, when I install the 2nd OS, I choose NOT to install the boot loader. I just go into the old grub.conf and add the menu item.

My setup:

Asus a8v, athlon 3500+, 2000GB RAM, 2 IDE drives.
hda: 120GB, 3 primary partitions to boot my 3 different windows installs. Grub is on MBR.
hdb: 250GB, along with lots of data, this drive has my linux partitions on it:

Disk B info from fdisk:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 26 208813+ 16 Hidden FAT16 (for future OS)
/dev/hdb2 27 51 200812+ 17 Hidden HPFS/NTFS (for future OS)
/dev/hdb3 52 76 200812+ 83 Linux (Fedora 2nd boot)
/dev/hdb4 77 30401 243585562+ f W95 Ext'd (LBA)
/dev/hdb5 * 77 152 610438+ 83 Linux (Fedora 1st boot)
/dev/hdb6 153 3900 30105778+ 83 Linux (Fedora 1st /)
/dev/hdb7 3901 4155 2048256 82 Linux swap
/dev/hdb8 4156 5175 8193118+ 83 Linux (Fedora 2nd /)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Does anyone know what the asterisk is next to /dev/hdb5 above? I've read online that there is a pointer in the MBR to the "bootable" partition. I assume this reflects that. But how do you set / change that? Can it be done with grub in grub.conf?

Here is the grub.conf I'm using (stored on hdb5):

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
default=0
timeout=7
splashimage=(hd1,4)/grub/splash.xpm.gz
hiddenmenu
# First Fedora install - works fine.
title Fedora Core (2.6.9-1.667) #1-Stable
root (hd1,4)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-1.667.img
# 2nd Fedora install: same Core 3 install, different partitions.
# For some reason this boots the first install!
title Fedora Core (2.6.9-1.667) #2-Experimental
root (hd1,2)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-1.667.img
title Windows - XP 1
unhide (hd0,0)
rootnoverify (hd0,0)
chainloader +1
makeactive
hide (hd0,1)
hide (hd0,2)
title Windows - XP 2
unhide (hd0,1)
rootnoverify (hd0,1)
chainloader +1
makeactive
hide (hd0,0)
hide (hd0,2)
title Windows - XP 3
unhide (hd0,2)
rootnoverify (hd0,2)
chainloader +1
makeactive
hide (hd0,0)
hide (hd0,1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Thanks in advance!.....

-Chester
 
Old 01-23-2005, 12:47 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
The second OS needs a different line in the grub.conf so grub can tell which one it's looking at. That also needs to be set correctly in the second system /etc/fstab.
Code:
So the grub entry would look like this ..
root=LABEL=/1 rhgb quiet

And the /etc/fstab in the second OS would look like this
LABEL=/1                /                       ext3    defaults        1 1
 
Old 01-23-2005, 05:55 AM   #3
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
* is default if i remember correctly...
 
Old 02-01-2005, 12:12 PM   #4
ChesterHemmer
LQ Newbie
 
Registered: Jan 2005
Location: Chicago, IL
Distribution: Fedora 3, Suse 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks, homey. You led me in the right direction.

I fixed it by using e2label to change the label on the first Fedora partition to something other than "/". Of course, I edited fstab and grub.conf to reflect this. Then I installed the 2nd Fedora on another partition and it dual booted fine. I went ahead and renamed this 2nd partition's label too, just to be on the safe side.

Granted, I could probably have just edited fstab & grub.conf to use absolute devices (eg. /dev/hda5), but I liked the idea of labels because I might be messing with the partitions later and didn't want to screw stuff up if their numbers changed.

-Chesterhemmer
 
Old 06-06-2005, 07:31 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
My post
http://www.linuxquestions.org/questi...43#post1680143
may be man -k
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora and other operating systems bong.mau Fedora 3 11-07-2005 06:39 PM
Multiboot --6 systems anybody got more 1kyle Linux - General 3 09-14-2005 07:15 AM
DISCUSSION: Custom kernel compilaton on RedHat/Fedora Systems Thetargos LinuxAnswers Discussion 2 08-28-2004 05:11 PM
Trying to get a multiboot of Windows 98, XP, and Fedora Linux. sloik2000 Linux - Software 4 08-13-2004 09:58 AM
Multiboot Fedora and Windows XP LemBit Linux - Newbie 6 08-08-2004 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:26 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
Open Source Consulting | Domain Registration