LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub.conf dual boot xp centos xp does not load (http://www.linuxquestions.org/questions/linux-newbie-8/grub-conf-dual-boot-xp-centos-xp-does-not-load-421624/)

Envision5000 03-04-2006 02:44 PM

grub.conf dual boot xp centos xp does not load
 
I have 2 hard drives

I installed xp on a sata drive first

then I installed centos 4.2 on the second hard drive

The problem is that the computer only boots into linux

Is there a fix.

Any help would be greatly appreciated.


here is my grub.conf file

# 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/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS-4 x86_64 (2.6.9-22.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-22.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-22.ELsmp.img
title CentOS-4 x86_64-up (2.6.9-22.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-22.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-22.EL.img
title Windows XP
map (sd0) (sd1)
map (sd1) (sd0)
chainloader (sd1,0)+1

acid_kewpie 03-04-2006 04:01 PM

1) Please remove the advert in your signature, it is against LQ.org rules to advertise without prior permission.

2) What actually happens? any errors?

Envision5000 03-04-2006 06:06 PM

Nothing happens. It does not load into windows xp

syg00 03-04-2006 06:23 PM

Change all "sd" to "hd" in the Windows stanza. Did the Centos install do this, or did you ???.

Envision5000 03-05-2006 12:32 PM

The only thing I added to this file is the code below. And I did change the sd to hd. Doesn't hd stand for ide while sd for sata drives?

title Windows XP
map (sd0) (sd1)
map (sd1) (sd0)
chainloader (sd1,0)+1

syg00 03-06-2006 04:36 AM

Quote:

Originally Posted by Envision5000
And I did change the sd to hd.

Did it resolve the issue ???.
Quote:

Doesn't hd stand for ide while sd for sata drives?
Only for the kernel drivers - not grub.

Envision5000 03-06-2006 10:45 PM

Changed it to hd. I get the same result.

Envision5000 03-06-2006 10:46 PM

Is it easier to dual boot with a different version of linux?

detpenguin 03-06-2006 11:04 PM

this is my xp entry in grub using slackware...the distro shouldnt' make a difference:

Quote:

title XP
rootnoverify (hd0,1)
makeactive
chainloader +1
*edit...

also, where did you install grub to. i installed to the MBR...i've had problems installing it other places, but it's never failed for me in MBR.


All times are GMT -5. The time now is 01:51 AM.