Not able to map hd1->hd0 for booting Windows on hd1
Jason Rennie
jrennie@csail.mit.edu
Wed, 21 Jul 2004 09:43:28 -0400
Debian Sarge
Grub version 0.95+cvs20040624-3
I've also sent this e-mail to bug-grub@gnu.org (after checking their
bug repository)
Hello,
I have the following disk set-up:
/dev/hda1 * 20GB Debian Sarge (mounted as /)
/dev/hda2 2GB Swap Space
/deb/hdb1 * 40GB Windows XP
I've followed the grub instructions for DOS/Windows. This is what the
entry for Windows looks like in my /boot/grub/menu.lst:
title Windows
map (hd0) (hd1)
map (hd1) (hd0)
root (hd0,0)
makeactive
chainloader +1
boot
But, whenever grub runs the "root (hd0,0)" command, grub sees the
linux partition:
Filesystem type is ext2fs, partition type 0x83
which is the filesystem and partition type of hd0,0. When grub tries
to boot it reports "Error 13: Invalid or unsupported executable
format". If I instead do "root (hd1,0)", grub sees the windows
partition:
Filesystem type unknown, partition type 0x7
But it hangs when it tries to boot (doesn't even get to the windows
splash screen). I get the same results using "rootnoverify". I see
the same filesystem/partition type output if I do not include the map
commands. So, it seems that the "map" commands are not doing what
they are supposed to do.
If I disconntect the linux drive and hook up the windows drive as
master, the machine boots Windows.
I've looked through the Debian grub bugs. None of them seem relevant
to my problem.
Machine Specs
-------------
Processor: Intel Celeron 2.8GHz
IDE Interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 6)
Host bridge: VIA Technologies, Inc. P4M266 Host Bridge (rev 0)
/proc/ide/hda/model: Maxtor 6E030L0
/proc/ide/hda/geometry: physical 59582/16/63 logical 3738/255/63
/proc/ide/hdb/model: Maxtor 6E040L0
/proc/ide/hdb/geometry: physical 79656/16/63 logical 4998/255/63
Please send me e-mail if you think there are things I should try in
order to debug the problem.
Thanks for looking at this,
Jason