LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-04-2006, 01:44 PM   #1
Envision5000
Member
 
Registered: Jan 2006
Location: Chicago
Distribution: Suse 10 + CentOs servers
Posts: 49

Rep: Reputation: 15
Question 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
 
Old 03-04-2006, 03:01 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,385

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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?
 
Old 03-04-2006, 05:06 PM   #3
Envision5000
Member
 
Registered: Jan 2006
Location: Chicago
Distribution: Suse 10 + CentOs servers
Posts: 49

Original Poster
Rep: Reputation: 15
Nothing happens. It does not load into windows xp
 
Old 03-04-2006, 05:23 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,226

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
Change all "sd" to "hd" in the Windows stanza. Did the Centos install do this, or did you ???.
 
Old 03-05-2006, 11:32 AM   #5
Envision5000
Member
 
Registered: Jan 2006
Location: Chicago
Distribution: Suse 10 + CentOs servers
Posts: 49

Original Poster
Rep: Reputation: 15
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
 
Old 03-06-2006, 03:36 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,226

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
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.
 
Old 03-06-2006, 09:45 PM   #7
Envision5000
Member
 
Registered: Jan 2006
Location: Chicago
Distribution: Suse 10 + CentOs servers
Posts: 49

Original Poster
Rep: Reputation: 15
Changed it to hd. I get the same result.
 
Old 03-06-2006, 09:46 PM   #8
Envision5000
Member
 
Registered: Jan 2006
Location: Chicago
Distribution: Suse 10 + CentOs servers
Posts: 49

Original Poster
Rep: Reputation: 15
Is it easier to dual boot with a different version of linux?
 
Old 03-06-2006, 10:04 PM   #9
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
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.

Last edited by detpenguin; 03-06-2006 at 10:06 PM.
 
  


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
how to configur grub.conf file for dual boot? den-den Linux - General 2 08-23-2005 02:49 PM
Grub won't load on dual boot with XP DuuhMojo Linux - Newbie 4 06-10-2005 03:07 PM
Grub will not load Windows XP with Ubuntu dual boot Alex4R Linux - Software 1 03-26-2005 11:29 AM
GRUB--Dual Boot xp and fc3, xp will not load stringstud Linux - Software 14 12-18-2004 08:05 AM
grub.conf - Trying to dual boot XP and FC2 LogicNZ Linux - Newbie 4 07-01-2004 03:01 AM


All times are GMT -5. The time now is 09:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration