Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-02-2004, 10:03 AM   #1
LQ Newbie
Registered: Jun 2004
Location: Dundee, Scotland
Distribution: Kubuntu / Fedora Core
Posts: 3

Rep: Reputation: 0
Easy Fedora/WinXP GRUB problem for the eggheads!

Right, a few weeks ago when first trying Linux, I set my XP drive to be Slave and freshly installed Fedora Core 2 on a new Master HD, I chose to install GRUB and have it set everything up and everything went and ran peachy, until I tried to boot into XP later on using the loader and got nothing. I got plenty of help via the net and plenty of things to try which only got me as far as "NTLDR not found", I was told to boot the XP drive as normal and got the same error. To cut a long story short, I never regained control of the drive via it's own MBR and ended up using a floppy with the NTLDR, Ndetect and boot.ini files on it until i finally reinstalled and scrapped linux.

This time to stop Fedora meddling, I installed XP on it's own and swapped drives before installing Fedora on it's own (but with GRUB installed). So I have Fedora working and XP working. I want my Fedora drive as it is (Primary Master with the 3 standard linux partitions) and my WinXP drive as the Primary Slave with it's single partition. How do I set this up without unleashing hell?

Old 06-02-2004, 10:11 AM   #2
Registered: Mar 2004
Location: United Kingdom
Distribution: LFS
Posts: 74

Rep: Reputation: 15
Allow Fedora to setup grub, then edit the conf file [/boot/grub/menu.lst]

add a section which reads like:
>title WindowsXP
>map (hd0) (hd1)
>map (hd1) (hd0)
>rootnoverify (hd0,0)
>chainloader +1

This tells grub to add a new menu item called WindowsXP, swap the hard disks over [bios trick], set the root partition to the first partition on the first harddisk [actually the second], and load the windows/dos chainloader.

Save, and reboot with both drives in the machine. You may need to run 'grub-install /dev/hda1' with both drives in so that it can detect both hard disks.

If that doesn't work change >rootnoverify (hd0,0) to read >rootnoverify (hd1,0).
I'm fairly confident it's the right way round!
Old 06-02-2004, 10:14 AM   #3
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
try this:
Set the the bios to boot from your linux drive, then add this to your /boot/grub.conf:
title winxp
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Old 06-02-2004, 10:28 AM   #4
LQ Newbie
Registered: Jun 2004
Location: Dundee, Scotland
Distribution: Kubuntu / Fedora Core
Posts: 3

Original Poster
Rep: Reputation: 0
thanks guys, will try those out now
Old 12-09-2004, 11:22 AM   #5
LQ Newbie
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Okay, so I'm having a problem here too. My setup is a little odd, so (of course) my GRUB doesn't like it. My WindowsXP drive is on a SCSI (takes the whole thing, so one partition there. This reads in as /dev/sda1) and my Fedora Core 3 is installed on my main Maxtor 60 gig hd (/dev/hda1, naturally). Booting Linux works nicely, booting windows gives me the lovely "NTLDR not found" message. I would just use the instructions above, but I don't know quite how I should set mine up. Thanks!


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
Problem with Grub SATA and WinXP Slalomsk8er Linux - General 2 01-14-2005 06:00 AM
Installed Fedora after Winxp, no grub =( colinexl Linux - Newbie 2 01-13-2005 12:45 PM
Yet another SUSE9.1 and WinXP GRUB boot problem wellmt Linux - Newbie 7 05-23-2004 04:49 PM
Fedora and WinXP on grub whitenoise99 Linux - Newbie 5 03-21-2004 03:38 PM
i got RH8 & WinXP installed and properly working by GRUB. how can i reinstall WINXP? kublador Linux - Newbie 4 06-23-2003 01:00 PM > Forums > Linux Forums > Linux - Newbie

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