LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-30-2003, 12:26 AM   #1
sean_nj
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
GRUB can not load WIinXP!


I just installed the WinXP Pro and Redhat Linux 9.0 on my laptop. I use GRUB as loader. I can boot into Linux without any problem. But GRUB just hangs there when I instruct it to boot into DOS(WinXP). The partition on my harddisk is:
MB
/dev/hda
/dev/hda1 ext3 125 /boot
/dev/hda2 extended 57106
/dev/hda5 NTFS 16387
/dev/hda6 NTFS 20481
/dev/hda7 SWAP 2047
/dev/hda8 vfat 2047 /work
/dev/hda9 ext3 16143 /

Win XP is on hda5.
My grub.conf is

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda9
# initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
password --md5 $1$Y/JLZWK2$jbb95uw8I8HscYvxTYmjw/
title Red Hat Linux (2.4.20-20.9)
root (hd0,0)
kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.20-20.9.img
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.20-8.img
title DOS
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
rootnoverify (hd0,4)
chainloader +1

Every time I try to boot into WinXP , the screen shows:

map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
rootnoverify (hd0,4)
chainloader +1

and just stay there.

Thanks a lot for your help,

sean
 
Old 08-30-2003, 04:37 AM   #2
Bill_Tür
Member
 
Registered: Jul 2003
Location: Germany
Distribution: RedHat
Posts: 44

Rep: Reputation: 15
What is that for?

map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)

Comment it and try again. Might work.
 
Old 08-30-2003, 09:19 AM   #3
sean_nj
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
The original grub.conf did no thave the statement
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)

and I can not boot into WinXP. I followed the instruction in Howto: Linux + Win9x with GRUB to use the above statements to map the XP partition(hd0, 4) to the first partition of the firs primary partition (hd0,0). It still does not work, same as before. I just found out that the (hd0,4) is the first partition of the extended partition, so I used partition magic to convert it to a primary partition. But it still does not work. In addition, I got some error message about my SWAP partition when I boot to linux.

Any suggestion is highly appreciated.

Thanks,

sean








Quote:
Originally posted by Bill_Tür
What is that for?

map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)

Comment it and try again. Might work.
 
Old 08-30-2003, 11:09 AM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Did you try the following code:
Code:
title DOS
rootnoverify (hd0,4)
chainloader +1
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
load grub again manomohan Red Hat 2 11-18-2005 10:53 PM
GRUB doesn't load rcracer7 Linux - Newbie 4 10-03-2005 12:16 AM
Grub won't load eggoz Linux - General 2 08-07-2005 08:01 PM
grub doesn't auto-load kernel, time/date auto-change, k3b cannot load kenji1903 Red Hat 16 03-27-2005 08:48 PM
GRUB Won't Load.... HELP! Spoon10 Fedora - Installation 10 07-27-2004 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:10 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