Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 01-26-2008, 11:27 AM   #1
LQ Newbie
Registered: Mar 2007
Location: Yuma, AZ
Distribution: CentOS 5
Posts: 11

Rep: Reputation: 0
help dual-boot CentOS 5/ WinXP

I installed WinXP on a spare hd by temporarily disconnecting hd0 and connecting hd1 in its place. It installed and booted, and then I was ready to switch back to CentOS 5 on hd0 and WinXP on hd1.
I reconnected hd0 as primary, /dev/hda, and hd1 as /dev/hdc. I added an entry to grub.conf to boot WinXP as follows;
# 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/hdc1
# initrd /initrd-version.img
title CentOS 5 (2.6.18-8.1.15.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.1.15.el5 ro root=/dev/hda3 rhgb quiet
initrd /initrd-2.6.18-8.1.15.el5.img

title CentOS 5 (
root (hd0,0)
kernel /vmlinuz- ro root=/dev/hda3 rhgb quiet
initrd /initrd-

title Windows XP Home Edition
rootnoverify (hd1,0)
chainloader +1

This much is correct, I think. Now, I'm pretty sure I need to edit the boot.ini file to account for the change from windows thinking it is mounted on hd0 to actually being mounted on hd1. This is the current boot.ini;
[boot loader]
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
C:\ = "Unidentified operating system on drive C."

I'm not sure how this needs to be modified. Also, I'm mystified by the last line, C:\ = "Unidentified operating system on drive C.". When the only hd connected was hd1 in the hd0 spot, WinXP booted and ran just fine, with no errors. So, I don't know if I need to be concerned about this or not. But, until I get the necessary editing done to at least get it to start to boot, I won't know about this last line.

So, first things first. Does anyone know how this boot.ini file should be modified? Thanks for any help.

Old 01-26-2008, 11:56 AM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
With both drives attached and booted into CentOS (which is out of date by the way) as root type something along the lines of;

/sbin/grub-install --recheck /dev/hda1

And also see this:

Use fdisk -l (that is the lower case letter 'L' in the command) to verify before making any changes.
Old 01-29-2008, 06:46 AM   #3
LQ Newbie
Registered: Mar 2007
Location: Yuma, AZ
Distribution: CentOS 5
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks, Lenard. Your link provided the answer.


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
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 04:13 PM
Problem Installing Centos Dual-Boot on WinXP with 2nd HD rdyas Linux - Newbie 5 12-18-2006 07:03 PM
Dual-boot with CentOS or Fedora and WinXP Dmjmusser Red Hat 1 02-17-2006 02:38 PM
reinstalling winXP on an existing dual boot system with winXP and FC4 grub not workin champion Fedora - Installation 3 02-13-2006 02:37 PM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 10:11 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:04 PM.

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