LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 03-17-2007, 05:27 PM   #1
Chris594
Member
 
Registered: Oct 2005
Posts: 51

Rep: Reputation: 15
Grub configuration - Triple boot


Hi everyone,
I need help to configure Grub Boot loader.

Partitions:
/dev/sda1 = /boot of Fedora Core 6
/dev/sda2 = / of Fedora Core 6
/dev/sda11 = /boot of OpenSuse 10.2
/dev/sda12 = / of OpenSuse 10.2
/dev/sdb1 = Windows XP
(I also made partitons for /home, /var, /opt... but I don' t think it's relevant in this case)

I use most of the time suse but sometimes need fedora and Windows.
I've read many threads about triple booting but still haven't manage to get grub running. I tried using suse's yast boot loader GUI but still nothing.

Does anyone know how to make this setup work, or perhaps has a link to a tutorial?

Any help is greatly appreciated

thanks
 
Old 03-17-2007, 07:25 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Is GRUB installed? If so, do you know what was specified for its root--ie where it will look for its config file.
Can you boot into any of the three OSes?

here is the general form of the two (or three) essential entries in the grub config file (menu.lst AKA grub.conf):

title somelinux
root (hdX,Y) points to the location of /boot--where grub will look for a kernel to boot. X=0 for drive 1, Y=0 for partition 1
kernel <path><name> root=dev/hdVW <path> is the path from the partition described in the "root" statement above. If it is the boot /partition, then <path> will be empty. <name> is the name of the kernel file in /boot--typically vmliuz-something. Finally root=....tells the KERNEL where to mount the file system "root"--AKA "/". It has NOTHING to do with the root statement that tells grub where to look for the kernel.
initrd <path><name> same logic as for kernel, except <name> is the name of the initrd file

Again, this file must be in the location to which grub is hard-coded to point to when it is installed
 
Old 03-17-2007, 07:45 PM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Why make it so hard? Install the OS, let it install its GRUB to a floppy and copy the information from the floppy to the "central" GRUB you have on your system. That way you'll never have to make any guesses about partitions or parameters. And once you're done copying, the floppy can be formatted and used for the next OS. I managed to intall no less than 9 OSes that way. One floppy, no headaches.

Last edited by jay73; 03-17-2007 at 07:46 PM.
 
Old 03-17-2007, 08:41 PM   #4
Chris594
Member
 
Registered: Oct 2005
Posts: 51

Original Poster
Rep: Reputation: 15
Hi,
First of all thank you for your replies and the tutorial.
I booted in Fedora's rescue mode, did grub-install /dev/sda. Now I can boot FC6.
So I had a look at the grub.conf file and tried to edit it manually in order to add OpenSuse and windows:

Code:
title Fedora Core (2.6.20-1.2925.fc6)
        root (hd0,0)
        kernel /vmlinuz-2.6.20-1.2925.fc6 ro root=LABEL=/1 rhgb quiet
        initrd /initrd-2.6.20-1.2925.fc6.img
title Fedora Core 6 (2.6.18-1.2869.fc6)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-1.2869.fc6 ro root=LABEL=/1 rhgb quiet
        initrd /initrd-2.6.18-1.2869.fc6.img
title OpenSuse 10.2 (2.6.20.2)
        root (hd0,3)
        kernel vmlinux-2.6.20.2-ccj47-default.gz ro root=/dev/sda12
        initrd /initrd-2.6.20.2-ccj47-default
title Windows XP
        rootnoverify (hd2,0)
        chainloader +1
(for some reason Fedora recognizes the windows disk as disk 3, but this is irrelevant)

Unfortunatly I still can't boot suse or windows

Do you see any mistake? I'm a missing anything?

Thanks again
 
Old 03-17-2007, 09:12 PM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Whenever Windows is not on the first disk, it needs to be mapped. I have (or rather had) Windows on the second disk so GRUB looked like this:
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1

As for openSuse, I really don't see why GRUB should locate it in the fourth partition when your fist post states it is in partition 11/12. You would need this instead:
root (hd0,10)
 
Old 03-17-2007, 10:02 PM   #6
Chris594
Member
 
Registered: Oct 2005
Posts: 51

Original Poster
Rep: Reputation: 15
thanks for the update,
I look into that in a couple of hours, I really need to go to bed right now .
@ jay73 I used gparted to view my partitions and /dev/sda11 is the fourth partition on my system. I think the problem is that I didn't wrote initrd's file type: for instance for fedora .img for suse gzip
Thanks again to both of you
 
Old 03-17-2007, 10:43 PM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Yes, alright, hda11 may physically be the fourth partition; but that doesn't mean GRUB is as smart as to verify the actual order of your partitions. Both Gparted and GRUB rely on the partition table; and if that one says that Suse is on hda11, then it is partition number 11. I may be wrong, but if your Suse still refuses to boot, I think you should go back to my previous post.
 
  


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
Grub configuration for triple boot Mandriva 2007 / Suse 10.2 / Windows XP willy_9 SUSE / openSUSE 9 01-12-2007 05:54 PM
Triple boot and GRUB puzzle tmarikle Fedora 7 12-30-2004 05:32 AM
Triple-Boot with GRUB? C0Y0TE Linux - Newbie 3 10-19-2004 12:28 PM
grub triple boot problem the rev Fedora 6 08-12-2004 02:15 AM
Triple boot w/ GRUB belorion Linux - General 3 06-29-2004 12:58 PM


All times are GMT -5. The time now is 03:51 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