Re: GRUB for two HD's

From: Duane Evenson (duane5_at_shaw.ca)
Date: 09/25/05


Date: Sun, 25 Sep 2005 12:46:19 GMT

On Thu, 18 Aug 2005 00:59:33 +0000, MR wrote:

> Hey everyone
>
> i had a question as to how i could possibly set up grub to boot three OS's.
>
> here's my current setup
>
> hda
> 20Gig NTFS
> 60Gig Red Hat Linux
>
> hdb
> 60Gig SuSE Linux
> 200Gig XP
>
> now, i have grub installed on both hda and hdb, and each grub only sees what
> is on its hd. so the suse grub sees only the windows xp and itself,
> whereas the redhat grub sees only itself (the 20gig NTFS used to be another
> version of xp, it's been formatted since). So now I'd like to upgrade the
> hda/RedHat to fedora 4, and before I do so wanted to ask whether it be
> possible to get the fedora grub to see the xp and suse on my other hd.
> currently i have to switch settings in the bios, in particular to hd boot
> order to boot either into suse or into red hat.
>
> thanks
> MR
Simple, edit /boot/grub/grub.conf
Enter something like the following. You'll have to enter the correct
kernel and initrd filenames for Red Hat and SUSE. These files are in
/boot.

default=0
timeout=20
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Red Hat Linux
        root (hd0,1)
        kernel /boot/vmlinuz-2.4.18 ro root=LABEL=/
        initrd /boot/initrd-2.4.18.img
title SUSE Linux
        root (hd1,0)
        kernel /boot/vmlinuz-2.4.12 ro root=LABEL=/
        initrd /boot/initrd-2.4.12.img
title Windows XP
        rootnoverify (hd1,1)
        chainloader +1

I think the WinXP will work, its an adaption of my Win98 script. Also,
this assumes that Redhat Linux is in the second partition, SUSE is in the
first partition and XP is in the second partition. If you have any swap
partitions before them, you'll have to increment the second number in
(hd0,1) and similar partition references.
Read thru the "info grub" documentation. Grub's easy and because you can
fiddle with it right from the boot loader level, you can change your
settings almost real-time until you get what you want.



Relevant Pages

  • fixing grub : mbr fix when windows install after linux
    ... "There is not a boot manager screen at all, ... windows but GRUB boot window does not appear. ... "I forgot to install GRUB, I didn't install GRUB in the MBR, I chose ... Fedora but that was not an active primary partition". ...
    (comp.os.linux.misc)
  • Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesnt work
    ... grub is installed on the /root partition, which is the first partition on hdc: hdc1, or in grub notation. ... Stage1 is the unpatched 512-byte file, that is patched and copied to the boot record during setup. ... This byte is initialized to 0xff in the stage1 file, but patched to 0x81 in your setup, to say "we are booting from disk." ...
    (comp.os.linux.setup)
  • Re: Boot manager for Windows only
    ... And also is GRUB capable of booting any ... > Windows partition or will it always hand over to the XP boot loader? ...
    (comp.os.linux.setup)
  • Re: cloning a system to another partition - what to change?
    ... preexisting ones during the instal, and add them to the boot menu, ... (e.g. xBSD or Windows, or other instances of grub, or lilo). ... - original system on hda8; grub is on same partition ... changed the root lines in /boot/grub/menu.lst to point to, and ...
    (Debian-User)
  • Re: How do I make a boot disk so I can restore Grub?
    ... I read that Windows will overwrite the MBR. ... > need to make a boot disk so I can restore MBR after Windows ... How do I make a boot disk and be able to restore Grub on ... with the designation for wherever your boot partition is. ...
    (comp.os.linux.setup)