LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-10-2003, 02:05 PM   #1
King of Japan
Member
 
Registered: Jul 2003
Location: Lincoln Nebraska
Distribution: Redhat 9
Posts: 61

Rep: Reputation: 15
Redhat 9 and XP on different HDs How to Dual Boot?


I'm really sorry if this has been addressed a million times, but I really have spent a bit of time searching without a definitive answer, and I know it must be a simple solution.

So here is the question:

I have one HD that has Redhat 9 that uses Grub as the Bootloader. It's a pretty basic Redhat 9 install.
I also have another HD that has XP installed.
I can mount the XP HD from Rh to look at and edit files just fine. But I'd really like to dual boot so I don't have to keep swapping out drives and changing jumpers.

I'd just like Grub to ask which system to boot and then do it.
I'd like to get away from Windows completely, but then I can't use my Zip + drive in Parallel mode in Redhat which is another can of worms in itself.

I'd appreciate any help, and I'd glady post any other info you need...well except for Credit Card info and naked pictures of my Girlfriend.

Thanks.

p.s. I'm not really The King of Japan.
 
Old 07-10-2003, 03:29 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You just need to make a grub entry for XP (plenty of examples on this site) Then point the cahinloader at the right drive / partition.
 
Old 07-10-2003, 03:30 PM   #3
synecdoche
Member
 
Registered: Jul 2003
Location: British Columbia, Canada
Distribution: CollegeLinux 2.5
Posts: 148

Rep: Reputation: 15
Note: I am assuming that you have XP on your first hard drive (hda) and Red Hat on the second (hdb).

Try this:

As root, edit /etc/grub.conf

Add these lines:

title Windows XP
rootnoverify (hd0,0)
chainloader +1


Save the file and reboot. Grub should add XP to your boot menu.

-dave
 
Old 07-10-2003, 03:59 PM   #4
King of Japan
Member
 
Registered: Jul 2003
Location: Lincoln Nebraska
Distribution: Redhat 9
Posts: 61

Original Poster
Rep: Reputation: 15
A thank you to all readers and especially to posters.
I figured it out by adding this to grub.conf:

title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
root (hd1,0)
makeactive
chainloader +1

I'm not sure if the map commands, makeactive and root command make a difference or not according to Synecdoche's post. I don't really know exactly what they mean anyway. I just know that it does what I wanted it do.
 
Old 07-10-2003, 04:44 PM   #5
synecdoche
Member
 
Registered: Jul 2003
Location: British Columbia, Canada
Distribution: CollegeLinux 2.5
Posts: 148

Rep: Reputation: 15
Well, what I posted is what mine said. If you want to test it, keep your grub that works and just add the lines I suggested to the end as well and try booting to it. If it works, then you can keep that one and ditch the extraneous lines.

-dave
 
  


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
Help!.......2 Hds, Dual Boot Problem, Thanks! hmingjun Linux - Newbie 1 08-10-2004 04:39 PM
Dual boot in two hds? (keyword: easy!) eneko Linux - Newbie 5 12-09-2003 09:24 AM
Dual boot with master slave hds Helper_Monkey Linux - Newbie 2 12-25-2002 10:57 PM
Dual boot Linux's on different hds? AnthonyM Linux - General 3 09-22-2002 12:26 PM
dual boot - Win2K/RH 7.3 on separate HDs rayne Linux - Newbie 3 09-20-2002 05:34 PM


All times are GMT -5. The time now is 10:52 PM.

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