LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2006, 08:58 PM   #1
TigerFX
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 2
Posts: 3

Rep: Reputation: 0
Configuring GRUB for XP, confused about map commands


Hi there,

I'm trying to dual-boot my XP machine. I have a 40GB drive. I installed XP onto it, then used partitionmagic to resize it down to 20GB. Then I used the Fedora installer to setup the other 20GB for Fedora's use. Now, I can successfully boot into Linux, but booting into windows fails with this message:

rootnoverify (hd0,0)
chainloader +1

I did a lot of poking around on the internet and reading of grub's documentation, which has helped a bit, but I'm afraid that I'm still confused. I've seen lots of other people complaining about problems similar to mine, and all of the solutions they recieve are something along the lines of editing part of grub.conf to:

Quote:
title Windows XP
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive

chainloader +1
It's almost identical, but these map commands have been inserted. To my understanding, this means we're fooling GRUB into believing that hd0 and hd1 are reversed - I just don't understand why we want to do this. I believe XP is on hd0, and Linux on hd1, so I don't understand why we would want to remap something that one would think is already correct. I considered trying different mapping arrangements until I could boot successfully, but I'm a bit paranoid that I might break things in a way that would cause me to not be able to boot into Fedora either, which would be very bad. Therfore, I'd appreciate it if someone could take a look at this, explain which map settings I should use, and essentially what's going on.

Here's an fdisk -l dump:

Code:
Disk /dev/hda: 40.0 GB, 40020664320 bytes
16 heads, 63 sectors/track, 77545 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       40641    20482843+   7  HPFS/NTFS
/dev/hda2           40642       76529    18087552   83  Linux
/dev/hda3           76530       77545      512064   82  Linux swap
Thanks in advance for your help, and sorry for the trouble.
 
Old 05-12-2006, 10:23 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,082

Rep: Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113
What you have is fine - the map directives are for when you have XP on a (separate) secondary disk. I'd say your geometry values are confusing XP.
What version of FC - FC2 by any chance ???

Have a look at this for some background - whether you decide to proceed as documented is your call.
 
Old 05-12-2006, 11:19 PM   #3
TigerFX
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 2
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the advice. If FC == Fedora Core, then yes - this is Fedora Core 2. I don't quite understand why it did this in the first place, I was just following the wizard.

I decided to take the advice of the link you sent - but I won't be able to test whether it worked or not because I'm compiling QT3 right now (taking forever... I'm going on 20 minutes now). Thanks for the tip - I'll let you know if it works.
 
Old 05-13-2006, 11:31 AM   #4
TigerFX
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 2
Posts: 3

Original Poster
Rep: Reputation: 0
Hey, wow - the advice from that link seems to have fixed my problem. Thank you very much.
 
  


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
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 12:45 PM
Suse Grub map? devojo Linux - Newbie 3 04-10-2005 02:52 AM
A confused newbie - startx and other related commands Godsmacker777 Linux - Newbie 2 01-27-2005 01:40 PM
Grub and System.map cuco76 Linux - Software 4 06-25-2004 01:58 PM
commands work with interactive grub, but not in grub.conf richardg Linux - Newbie 2 11-23-2003 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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