PDA

View Full Version : Dual boot woes



electron1948
1st August 2006, 07:36 PM
Something of anFC5 newbie here but I did play with FC4 a while back.

I have two drives, one with WinXP and one with FC5. I can boot both XP & FC5 by changing the boot drive in the BIOS so I assume the installs are OK. In adition I can boot FC5 from a boot floppy or the Rescue CD.

What I cannot do is start FC5 from the Windows boot loader or XP from Gub. In both cases the PC hangs with a black screen showing either a single flashing "-" (Win boot to FC5) or the Grub commands (XP boot from Grub).

I've tried all the things suggested in various websites to get this to work - can anyone help?

My system is as follows:


HD1: EIDE with FC5
HD2: SATA Raid with XP

I have the FC5 boot sector saved as boot.lnx on the C: drive of XP and I do the usual: c:\boot.lnx="Fedora Core5" in boot.ini

In grub.conf I have:


title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader+1
boot

fdisk gives me:


Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 64 514048+ 83 Linux
/dev/hda2 65 9964 79521750 f W95 Ext'd (LBA)
/dev/hda5 65 403 2722986 b W95 FAT32
/dev/hda6 404 1828 11446281 83 Linux
/dev/hda7 1829 2090 2104483+ 82 Linux swap / Solaris
/dev/hda8 2091 5660 28675993+ b W95 FAT32
/dev/hda9 7999 9964 15791863+ bc Unknown

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1147 9213246 c W95 FAT32 (LBA)
/dev/sda2 1148 5101 31760505 f W95 Ext'd (LBA)
/dev/sda5 1148 1403 2056288+ b W95 FAT32
/dev/sda6 1404 2168 6144831 b W95 FAT32
/dev/sda7 2169 2933 6144831 b W95 FAT32
/dev/sda8 2934 3698 6144831 b W95 FAT32
/dev/sda9 3699 4718 8193118+ b W95 FAT32
/dev/sda10 4719 4973 2048256 b W95 FAT32
/dev/sda11 4974 5101 1028128+ 6 FAT16

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1147 9213246 c W95 FAT32 (LBA)
/dev/sdb2 1148 5101 31760505 f W95 Ext'd (LBA)
/dev/sdb5 1148 1403 2056288+ b W95 FAT32
/dev/sdb6 1404 2168 6144831 b W95 FAT32
/dev/sdb7 2169 2933 6144831 b W95 FAT32
/dev/sdb8 2934 3698 6144831 b W95 FAT32
/dev/sdb9 3699 4718 8193118+ b W95 FAT32
/dev/sdb10 4719 4973 2048256 b W95 FAT32
/dev/sdb11 4974 5101 1028128+ 6 FAT16

My grub.conf is:


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda6
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.17-1.2157_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.17-1.2157_FC5 ro root=LABEL=LINUX rhgb quiet
initrd /initrd-2.6.17-1.2157_FC5.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=LABEL=LINUX rhgb quiet
initrd /initrd-2.6.15-1.2054_FC5.img
title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader+1
boot

This and other irritants are driving me nuts - any help would really be appreciated!

markjensen
1st August 2006, 07:44 PM
I don't dual boot Windows at all, so cannot tell you exactly how to fix this, but I am reasonably certain that you fix this by using map(x)(y) (the 'x' and 'y' terms will need to be replaced with drive device IDs) in your grub config file. The map command will logically swap driver orders around for you. I think that Linux sets drives with IDE first, then SATA; and Windows does it the other way. Or vice-versa...

A google for a similar situation to yours with "map" as a keyword and you should find a workable answer.

Seve
1st August 2006, 07:47 PM
Hello:

title Windows XP
rootnoverify (hd1,0)
Just for giggles try booting and entering grub and cursor to the XP entry and type e ,,,, then cursor to the (hd1,0) and change it to (hd0,0) then type b to boot and see what happens.

SEve

electron1948
2nd August 2006, 05:05 PM
Mark, thanks for your response, your suggestion worked.:

I changed:

title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader+1
boot

To:

title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader+1
boot

And I can boot XP on the SATA drive from Grub on the IDE, great. :D

Many thanks for this. Now to find out how to get it boot FC5 on the IDE from XP on the SATA then I can access either OS whichever BIOS boot drive it's set to.

electron1948
2nd August 2006, 05:08 PM
Hello:

Just for giggles try booting and entering grub and cursor to the XP entry and type e ,,,, then cursor to the (hd1,0) and change it to (hd0,0) then type b to boot and see what happens.

SEve

Hi Seve,

Sorry but your idea fails, I changed:

title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader+1
boot

To:

title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader+1
boot

and all I get is:

Error 13: invalid or unsupported executable format. :(

Thanks for your help.

Seve
2nd August 2006, 05:22 PM
Hi Seve,

Sorry but your idea fails, I changed:

title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader+1
boot

To:

title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader+1
boot

and all I get is:

Error 13: invalid or unsupported executable format. :(

Thanks for your help.
Hello:
Well...that was the giggles thingy. :)
glad you got it sorted out
Cheers
Seve