LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-12-2004, 04:40 AM   #1
Scratchit
Member
 
Registered: Apr 2004
Location: England
Distribution: SUSE 9.1
Posts: 60

Rep: Reputation: 15
Fedora 1 & XP


Hi all

I've been running just Fedora 1 on a box for a while now. I need to get XP back on for some stuff I have to do which cannot be done with Fedora. I have Fedora on an 80 gig HD on it's own. I have another brand new 80 gig HD which I plan on using for XP. My first plan was to install XP on the new drive and then change the boot sequence in BIOS to either the Fedora HD or the XP HD as required.

As this will be a pain to keep changing the thing in BIOS is there anyway I can install XP on the new empty drive, call it C: drive, and leave Fedora alone on 'D Drive'. I know I could install XP and then re-install Fedora and have Grub do the selection thing, however, I just about have Fedora installed with all the stuff I need and it's running fine. I do not want to have to re-install it and go trought all the $hit again.

Basically I need to install XP, leave Fedora alone and have Grub available to select either OS. Any help appreciated.

Cheer
 
Old 06-12-2004, 03:26 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
My suggestion would be to temporarily disconnect the disk with fedora (just to make sure it doesn't get replaced by XP) then attach the blank disk as the primary master. You can then install XP as you usually would.

After the installation and you are happy (as happy as you can be ) with the XP install make the XP drive the Secondary master and put the Fedora disk back as the primary master. This will let you boot Fedora only.

Once you have booted into fedora you can add a bootloader entry for XP that maps the second drive to make it appear as the primary (this fools XP into thinking it is the primary master) and map the fedora disk to make it appear as secondary master.

Now you should be able to choose which OS you want to run at boot time without ever needing to change the BIOS.

Last edited by david_ross; 06-12-2004 at 03:28 PM.
 
Old 06-13-2004, 01:15 AM   #3
Scratchit
Member
 
Registered: Apr 2004
Location: England
Distribution: SUSE 9.1
Posts: 60

Original Poster
Rep: Reputation: 15
Hi David

Your suggestion exactly fills the bill on what I'm aiming for. Sorry but I'm so green with Linux could you lead me through this the quote below, I've no clue how to proceed.

Quote:
Once you have booted into fedora you can add a bootloader entry for XP that maps the second drive to make it appear as the primary (this fools XP into thinking it is the primary master) and map the fedora disk to make it appear as secondary master.
Thanks
 
Old 06-13-2004, 12:07 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
The entry should look something like:

title Windows XP
map (hd0) (hd2)
map (hd2) (hd0)
rootnoverify (hd0,0)
makeactive
chainloader +1
 
Old 06-14-2004, 01:11 AM   #5
Scratchit
Member
 
Registered: Apr 2004
Location: England
Distribution: SUSE 9.1
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks for that, one more dumb question, where, and into what do I enter this info. I presume it's a config file of some kind. Please supply the file name and location. Told you I was clueless

Cheers
 
Old 06-14-2004, 01:20 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
The file should be:
/boot/grub/menu.lst

Just add it to the end of the file.
 
Old 06-23-2004, 01:37 AM   #7
Scratchit
Member
 
Registered: Apr 2004
Location: England
Distribution: SUSE 9.1
Posts: 60

Original Poster
Rep: Reputation: 15
Hi David

Just to clarify things. I just got home and have installed the second HD, installed Windows on it, this is master, Fedora is on slave, both OS's work fine by changing the boot option.
Copy of the file you say I should edit below.

You say I should insert the following at the end of the file.

title Windows XP
map(hd0) (hd2)
map(hd2) (hd0)
rootnoveryfy (hd 0,0)
makeactive
chainloader +1

I'm a bit puzzled about the hd2 bit, in Bios it indicates I have two drives hd0 and hd1, wher does hd2 come in, I'm not trying to teach granny to suck eggs but want to make sure I get it right the first time.

Thanks and regards

# 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/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2174.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi rhgb
initrd /initrd-2.4.22-1.2174.nptl.img
title Fedora Core (2.4.22-1.2115.nptl)
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
 
Old 06-23-2004, 01:49 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
hd2 would be secondary master - just use hd1 for the primary slave.
 
Old 06-24-2004, 12:40 PM   #9
Scratchit
Member
 
Registered: Apr 2004
Location: England
Distribution: SUSE 9.1
Posts: 60

Original Poster
Rep: Reputation: 15
Hi David

Sorry to bother you again. I inserted the instructions you stated into menu.lst. When I re-boot the menu comes up with Windows XP as the third item. Other two are Linux. However, when I selected it gave the following:

Error 13: Invalid or unsupported executable format
Press any key to continue

On pressing a key it goes back to the menu.

I have a feeling I'm maybe putting in or omitting spaces in the instruction. Could you please indicate where the spaces should go, or do you think it's some other fault.

Sorry to be a pest
 
Old 06-24-2004, 01:22 PM   #10
Scratchit
Member
 
Registered: Apr 2004
Location: England
Distribution: SUSE 9.1
Posts: 60

Original Poster
Rep: Reputation: 15
Ok, solved it, works now, changed
rootnoverify (hd0,0) to
rootnoverify (hd1,0)

Thanks for the help.
 
  


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
(FreeBSD && Fedora Core 4 && Slackware 10.0) Filesystem Support taylor_venable *BSD 1 07-14-2005 03:24 PM
silicon image 0680 pci-raid controller && Fedora happy78 Linux - General 1 06-07-2005 02:07 AM
fedora & Microsoft Office Keyboard & Intellimouse ohhh_hhho Linux - Software 1 04-18-2005 07:59 PM
Java & JOGL & udev install on Fedora probs! striderwho Linux - Newbie 0 01-30-2005 04:44 AM
fedora core 1 install -- white screen & mouse & freezes linuxcharlie Fedora - Installation 12 04-27-2004 12:36 PM


All times are GMT -5. The time now is 10:13 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