bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't get Windows to boot on secondary disk


From: Jeff Sheinberg
Subject: Re: can't get Windows to boot on secondary disk
Date: Fri, 3 Aug 2001 21:02:10 -0400

Bob Berman writes:
 > 
 > I have installed grub-0.5.96.1 and am trying to get it to boot up
 > Windows 98 on a secondary IDE disk. My primary disk - SCSI - boots
 > up fine, but I can't get grub to boot Windows on the secondary disk.
 > I also have Linux installed on the seconday disk and I *can* boot
 > that!
 > 
 > If I switch it in the BIOS so that the IDE disk is primary, I can
 > get grub to boot Windows. Weird huh?
 > 
 > (IDE - hd0, SCSI - hd1)
 > 
 > If I do:
 > 
 >     rootnoverify (hd0,0)
 >     makeactive
 >     chainloader +1
 >     boot
 > 
 > and Windows boots!
 > 
 > But if I make the SCSI disk the primary in the BIOS and then do:
 > (SCSI - hd0, IDE - hd1)
 > 
 >     map (hd0) (hd1)
 >     map (hd1) (hd0)
       ^^^^^^^^^^^^^^^

Just what do you think these "map" commands do?  They don't affect
grub at all, as far as grub is concerned, (hd0) is still (hd0)
after a "map" command.  The "map" commands affect the BIOS disk
addressing after grub has booted something, eg, the specified
chainloader.

 >     rootnoverify (hd0,0)
 >     makeactive
 >     chainloader +1
 >     boot
 > 
 > nothing happens. It just sits there.
 > 
 > Likewise, if I do:

Try putting those same "map" commands right here,
       VVVVVVVVVVVV
 >     rootnoverify (hd1,0)
 >     makeactive
 >     chainloader +1
 >     boot
 > 
 > it also hangs.
 > 
 > But if I do:
 >     root (hd1,9)
             ^^^^^

I assume you have linux installed on your IDE drive, that's
usually (hd1) to grub when the BIOS is booting from SCSI.  Linux
doesn't care where it has been booted from (unlike windows), so
this works okay.

 >     kernel /boot/vmlinuz
 >     boot
 > 
 > I can easily boot up Linux.
 > 
 > 

 > For what its worth, I have LILO installed in the MBR of the IDE
 > and SCSI disks, although I don't think that has anything to do
 > with this.
 > 
 > I'd like to keep the SCSI disk the primary in the BIOS. How can
                        ^^^^^^^^^^^^^^^^^^^^^

Why?  Are you trying to make some trouble for yourself?  What kind
of CD-ROM drive do you have (SCSI or IDE)?  How often do you boot
from CD-ROM? 

 > I get Windows 98
 > to boot from grub or is this a bug?

Adding the "map" commands to the stanza as I suggested above
should work.

In the future, please give more complete information about your
hardware configuration - MB, BIOS, all controllers and partition
tables, which OSs are installed where, where and how grub was
installed, etc.  The grub "geometry" command is handy here, you
can even run it from the grub shell (/sbin/grub) under linux.

We are not mind-readers and magicians on this list.  And read the
excellent grub info documentation, repeatedly, if necessary, until
it sinks in.

-- 
Jeff Sheinberg  <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]