-   Linux - General (
-   -   Grub hangs when booting Windows XP (

dezza 04-07-2007 02:58 AM

Grub hangs when booting Windows XP
I have an ASUS P5W DH Deluxe motherboard from ASUS with the famous Jmicron controller, and I have some problems booting into Windows in Grub.

This is my connector setup

SATA1 Western Digital Raptor 36GB

PRI_EIDE (Jmicron) Seagate 200GB

Western Digital Raptor 36GB = Linux
Seagate 200GB = Windows XP

My bios is set to configure IDE to SATA and NOT AHCI (I do not have a floppy to install AHCI drivers when installing Windows)
.. So in Windows Seagate 200GB is seen as a SCSI disk.

NOTE: I have preserved the NTLDR bootloader on the Seagate 200GB and I need to switch the harddrives priority in the BIOS so the Western Digital Raptor 36GB is the first drive to boot to load Grub and the Windows IDE Seagate 200GB is the second.


rootnoverify (hd1,0)
chainloader +1

But it hangs/freezes with the paragraph _ sign blinking.

NOTE: NTLDR is still on the Windows XP IDE disk, can this give any problems? I have Grub installed on the root ArchLinux partition (/) .. There are only 2 partitions on the Linux disk, the root and the swap.

Is it because NTLDR is still on the MBR of the Windows XP disk?
Is it because the Windows XP disk is the 2nd harddrive, when I switch the priority to boot from Grub on Linux Disk MBR?

greeniguana00 04-07-2007 10:39 AM

I'm not sure if this will work, but try adding these lines:
map (hd0) (hd1)
map (hd1) (hd0)

dezza 04-07-2007 11:44 AM

That actually worked!

What is the meaning of those two lines and why do they make it work? I would like to know ..

greeniguana00 04-07-2007 11:55 AM


Originally Posted by dezza
That actually worked!

What is the meaning of those two lines and why do they make it work? I would like to know ..

They switch the two drives so that Windows thinks it is on the first hard drive, which is required for it to properly boot.

dezza 04-07-2007 12:53 PM

It confused me in the start, cause I thought it would switch hd1 to be hd0 so that I would be running the commands of my Linux disk.. Confusing bootloaders that no-one understands!

But thanks alot for the tip!

Is there a HOWTO of some kind for Grub with alot of troubleshootings like this one? It might be a common problem I would think.

james2b 04-07-2007 04:32 PM

Here is a helpful link;

dezza 04-08-2007 01:56 AM

Of course I know the official site!

greeniguana00 04-08-2007 06:57 AM

This is what you want:
The answer to this is in this section:

Of course when I was looking for this info a few months ago I didn't think to look there.

dezza 04-08-2007 08:19 AM

Thanks again greeniguana00 ..

Topic closed :)

I hope the topic will come in handy for other users searching for the same solution!

All times are GMT -5. The time now is 06:37 AM.