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-07-2004, 07:45 PM   #1
/home/dick
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Rep: Reputation: 0
Dual booting with Red Hat and WinXP- Help!


I have Red Hat v9 installed on my main hard drive which is on IDE0 as the master. I would like to install winXP onto my secondary hard drive which is on IDE1 as the slave. Would I be able to dual boot normally? Could I boot winXP when I want and Red Hat when I want without incurring any serious mbr errors? Please help!!
 
Old 03-07-2004, 09:06 PM   #2
TagnikZur
LQ Newbie
 
Registered: Mar 2004
Location: New Zealand
Distribution: Linux Redhat 9
Posts: 11

Rep: Reputation: 0
I also dual boot red hat 9 with windows XP...windows XP boot loader does not recognise the linux partition, so here is what you do...

1. delete linux
2. install windows
3. re-install linux

why do this? simple, redhat recognises all windows partitions so it sets up the boot loader for you, windows xp does not recognise linux.
 
Old 03-07-2004, 09:39 PM   #3
/home/dick
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Right but theyd be on seperate drives. Would that make a difference?
 
Old 03-07-2004, 09:51 PM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Disconnect the main drive and put the secondary drive on primay master, install winxp on it, put the harddrives back where they were, boot into redhat and add this to your /boot/grub/grub.conf
Code:
title WinXP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
this way the MBR on your main drive doesn't get touched, and if you feel like it you can safely remove winxp or redhat without affecting the other, if you remove redhat all you need to do is connect the winxp drive to primary master.
 
Old 03-07-2004, 10:01 PM   #5
/home/dick
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks but when I try to modify grub.conf it says that the file cant be read. Whats up with that.
 
Old 03-07-2004, 11:16 PM   #6
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
you need to do it as root, type "su" then enter your root password
 
Old 03-07-2004, 11:23 PM   #7
/home/dick
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Just to be sure. I reinstall the harddrives into their original order and THEN modify grub.conf?? Doesn't make sense to me but I'm obviously not the expert.

Last edited by /home/dick; 03-07-2004 at 11:25 PM.
 
Old 03-07-2004, 11:44 PM   #8
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Doesn't really matter, editing grub.conf only adds an entry in grub when you boot, obviously if you try to boot winxp which hasn't been installed yet it will fail.
 
Old 03-07-2004, 11:53 PM   #9
/home/dick
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Original Poster
Rep: Reputation: 0
And what about the MBR. When windows installs wont it modify the MBR, and doesnt the MBR have to be on hda - hard drive 1??? So in this procedure there would be two MBRs???
 
Old 03-08-2004, 12:00 AM   #10
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Yea each drive can have a mbr, xp will modify the mbr on the drive its on during installation, but only the drive that is set to the first bootable device is going to be used.
If you connect your winxp drive to primary master, or set in bios to boot from D: first it'll load winxp directly.

Last edited by Demonbane; 03-08-2004 at 12:03 AM.
 
Old 03-08-2004, 12:26 AM   #11
/home/dick
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for all your help bro. And finally. So if I install WinXP to the secondary and leave that drive as the slave, then the Red Hat booter program will start when I boot the computer (assuming I leave the BIOS set to boot from the master hard drive), and the booter program will let me choose either Red Hat or WinXP to boot, right? And it'll do this without screwing up the MBRs for eachother... eh?
 
Old 03-08-2004, 12:31 AM   #12
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Yea that should be what's going to happen, disconnect the main drive and put the secondary drive on primary master when you install winxp, if you don't do it the winxp installer may complain.
 
Old 03-08-2004, 05:47 PM   #13
/home/dick
LQ Newbie
 
Registered: Mar 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Your code didn't work. I entered it into grub.conf exactly as you typed it. But when the boot menu comes up, and I choose WinXP, it says "incorrect drive." Anyone know of working code?? Note: I have two hard drives. Linux is on the master, WinXP is on the slave.
 
Old 03-08-2004, 08:47 PM   #14
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
strange, in the grub menu press "C" to get in the prompt, type "root (hd" then press TAB, it should show you a list, do you see hd1 in there?
 
  


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
Dual Booting XP and Red Hat jackp Linux - Newbie 7 12-23-2004 12:34 AM
Problems with Dual booting XP and Red Hat 9 skull_leader Linux - Newbie 1 12-16-2003 09:23 PM
GRUB, MBR, red hat 9 winxp in dual hard disks samik Linux - Newbie 2 10-15-2003 03:29 PM
Dual Boot of WinXP and Red Hat 9 Quiller Linux - General 2 05-24-2003 07:19 PM
Dual boot - Red Hat 7.0/WinXP dlwheeler Linux - Software 3 03-12-2003 05:19 PM


All times are GMT -5. The time now is 10:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration