LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-07-2007, 02:58 AM   #1
dezza
Member
 
Registered: Nov 2004
Location: Denmark
Distribution: ArchLinux, Debian, Gentoo, Ubuntu, VoidLinux
Posts: 133

Rep: Reputation: 18
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?
 
Old 04-07-2007, 10:39 AM   #2
greeniguana00
Member
 
Registered: Feb 2007
Distribution: Gentoo AMD64
Posts: 42

Rep: Reputation: 15
I'm not sure if this will work, but try adding these lines:
map (hd0) (hd1)
map (hd1) (hd0)
 
Old 04-07-2007, 11:44 AM   #3
dezza
Member
 
Registered: Nov 2004
Location: Denmark
Distribution: ArchLinux, Debian, Gentoo, Ubuntu, VoidLinux
Posts: 133

Original Poster
Rep: Reputation: 18
That actually worked!

What is the meaning of those two lines and why do they make it work? I would like to know ..
 
Old 04-07-2007, 11:55 AM   #4
greeniguana00
Member
 
Registered: Feb 2007
Distribution: Gentoo AMD64
Posts: 42

Rep: Reputation: 15
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.
 
Old 04-07-2007, 12:53 PM   #5
dezza
Member
 
Registered: Nov 2004
Location: Denmark
Distribution: ArchLinux, Debian, Gentoo, Ubuntu, VoidLinux
Posts: 133

Original Poster
Rep: Reputation: 18
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.
 
Old 04-07-2007, 04:32 PM   #6
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Ubuntu Mate 18.04, Mint 19.1
Posts: 360

Rep: Reputation: 45
Cool grub

Here is a helpful link; http://www.gnu.org/software/grub/
 
Old 04-08-2007, 01:56 AM   #7
dezza
Member
 
Registered: Nov 2004
Location: Denmark
Distribution: ArchLinux, Debian, Gentoo, Ubuntu, VoidLinux
Posts: 133

Original Poster
Rep: Reputation: 18
Of course I know the official site!
 
Old 04-08-2007, 06:57 AM   #8
greeniguana00
Member
 
Registered: Feb 2007
Distribution: Gentoo AMD64
Posts: 42

Rep: Reputation: 15
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.
 
Old 04-08-2007, 08:19 AM   #9
dezza
Member
 
Registered: Nov 2004
Location: Denmark
Distribution: ArchLinux, Debian, Gentoo, Ubuntu, VoidLinux
Posts: 133

Original Poster
Rep: Reputation: 18
Thanks again greeniguana00 ..

Topic closed

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


Reply

Tags
grub, ntldr, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB hangs on booting tijo.thomas Linux - Software 20 08-24-2006 05:23 AM
Windows XP hangs first time after booting debian nebraska Linux - Software 2 07-17-2006 07:08 AM
trying to resinstall windows: system hangs after booting tamashii Linux - Newbie 3 11-23-2004 02:40 PM
booting morphix for cd/ hangs on grub jlengach Linux - Software 0 09-28-2004 11:46 AM
GRUB windows xp not booting mirage Linux - Newbie 2 05-14-2003 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration