LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-22-2010, 05:50 PM   #1
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 139

Rep: Reputation: 15
a quick dual boot question


Hi

I have Redhat running on my box at the moment, but I am thinking of installing Win XP (a licenced and legal copy even) onto another hard disk which I would make as primary.

So my question is how to go about this?

How do I, after installing and configuring XP on the new primary make a boot loader (grub?) then boot of my second(ary) disk?

The reason I wish to do this is that presently I am very happy with my Redhat installation / configuration / state of install and I do not wish to disturb it. If there is an easier way to attack this problem then please don't hesitate to suggest that strategy.

Thanks to all in advance :-)
 
Old 05-22-2010, 06:11 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Might be easiest to stick the new disk in and disconnect the current. Install XP as normal.
Check it out, then stick the other disk back in, and change the BIOS boot order to boot your Redhat disk first. Add the following to your /boot/grub/menu.lst (or /boot/grub/grub.conf depending on Redhat release)
Code:
title Windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
(the maps are to make XP think it is on the BIOS boot disk).
 
Old 05-22-2010, 06:13 PM   #3
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Here's how I'd attempt to do it:
1. Pull the drive with RH on it
2. Put in your second drive and install WinXP
3. Pull the second drive, reconnect the first drive as the primary and the second drive as the secondary
4. Edit /boot/grub/grub.conf on the primary drive, adding the following stanza:
Code:
title Windows XP
        map (hd0) (hd1)
        map (hd1)(hd0)
	rootnoverify (hd0,0)
	chainloader +1
5. Reboot and see that you can get into both RH and WinXP

I have actually done it before, but it's been several years, so no guarantee that I've got the syntax completely correct. The grub manual is your friend in this case
 
1 members found this post helpful.
Old 05-23-2010, 05:07 PM   #4
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 139

Original Poster
Rep: Reputation: 15
Hi

Quote:
Originally Posted by RockDoctor View Post
Here's how I'd attempt to do it:
that sounds seductively easy ... thanks!

I will be attempting this in the coming week, thanks for the reference to the manual for syntax too!

bewdy
 
Old 05-24-2010, 11:42 AM   #5
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
@syg00 - looks like I was two minutes too late with my post
 
Old 05-24-2010, 05:13 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Usually happens to me .. I start an answer, wander off, then post. Way too late most times.
BTW, I think you need to change that rootnoverify reference - the maps only change the logical reference to the disk.
 
Old 05-25-2010, 05:52 AM   #7
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 139

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by syg00 View Post
Usually happens to me .. I start an answer, wander off, then post. Way too late most times.
BTW, I think you need to change that rootnoverify reference - the maps only change the logical reference to the disk.
but the thought is well appreciated ... :-)
 
Old 06-21-2010, 06:38 PM   #8
pellicle
Member
 
Registered: Jul 2008
Location: Finland
Distribution: RHEL4
Posts: 139

Original Poster
Rep: Reputation: 15
guys

sorry to take so long about this, but between posts I've moved country (back to Australia) and been doing much needed repairs to my house.

So, my problem is it didn't work. As I'm not familiar with grub syntax I've just monkey see monkey dooing the above code I'll report the error here and try to research it as well

I get the error of
Quote:
Error 13: Invalid or unsupported executable format
XP boots fine as long as its disk is plugged into SATA1 socket and the Linux part works fine (as its plugged into SATA1 now with the XP disk being plugged into SATA2 location)

thanks

PS:

problem solved. I discovered an older post here which discusses this with relationship to Fedora. I changed the above recommended code to now read:
Quote:
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
makeactive
chainloader +1
boot
disks are SATA

thanks to syg00 for posting in that thread:-)

Last edited by pellicle; 06-21-2010 at 06:50 PM.
 
  


Reply



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
SuSE 9.1 Professional and Windows XP Dual Boot--QUICK Question redbutler SUSE / openSUSE 3 11-28-2005 03:56 PM
quick dual boot question PenguinMolester Linux - Newbie 6 04-29-2005 03:10 PM
Quick Dual Boot Question Echo Kilo Linux - General 6 12-25-2004 05:46 PM
Please Help A Noob, Quick Question About Dual Boot JacobRV Linux - Newbie 6 11-18-2004 10:35 PM
Quick dual boot question... AMDPwred Linux - General 12 10-01-2002 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:14 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
Open Source Consulting | Domain Registration