LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Grub hangs when booting Windows XP (https://www.linuxquestions.org/questions/linux-general-1/grub-hangs-when-booting-windows-xp-543978/)

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
Code:

SATA1 Western Digital Raptor 36GB
SATA2 -
SATA3 -
SATA4 -

PRI_EIDE (Jmicron) Seagate 200GB
PRI_IDE Lite-On DVD-RW

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.

Code:

rootnoverify (hd1,0)
makeactive
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

Quote:

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

grub
 
Here is a helpful link; http://www.gnu.org/software/grub/

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: http://www.gnu.org/software/grub/manual/html_node/
The answer to this is in this section: http://www.gnu.org/software/grub/man...OS_002fWindows

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 08:45 AM.