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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-30-2003, 12:26 AM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 6
Rep:
|
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
|
|
|
08-30-2003, 04:37 AM
|
#2
|
Member
Registered: Jul 2003
Location: Germany
Distribution: RedHat
Posts: 44
Rep:
|
What is that for?
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
Comment it and try again. Might work.
|
|
|
08-30-2003, 09:19 AM
|
#3
|
LQ Newbie
Registered: Aug 2003
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
|
08-30-2003, 11:09 AM
|
#4
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
Did you try the following code:
Code:
title DOS
rootnoverify (hd0,4)
chainloader +1
|
|
|
All times are GMT -5. The time now is 04:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|