LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-22-2007, 11:33 PM   #1
hencehungry
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
GRUB 0.97 won't boot win xp


After installing fedora 6 on a separate partition, grub 0.97 will not boot my win xp partition.

fdisk print out:

/dev/hda1 * 1 1 8001 1 FAT12
/dev/hda2 2 1467 11775645 f W95 Ext'd (LBA)
/dev/hda5 2 639 5124703+ b W95 FAT32
/dev/hda6 640 652 104391 83 Linux
/dev/hda7 653 1467 6546456 8e Linux LVM

grub menu setting:

Fedora Core
root (hd0,5)
kernel /vmlinuz-2.6.18 ...
Other
rootnoverify (hd0,4)
chainloader +1

I'm new to this, any ideas how I can make the "Other" to boot into my Win XP partition. If this have been covered in this Forum already, please direct me to the proper thread.

Thanks in advance.
 
Old 02-22-2007, 11:44 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Try changeing this:
Other
rootnoverify (hd0,4)
chainloader +1

to this:
Other
rootnoverify (hd0,4)
man (hd0,4) (hd0,0)
man (hd0,0) (hd0,4)
makeactive
chainloader +1

Reason: windows won't boot via the grub bootloader unless it's on the first partition of the first hard drive. So, we just tell it a little white lie (the map lines) to convince it that it's somewhere other than where it is (the map lines tell it it's on the first partition of the first drive).
 
Old 02-23-2007, 12:10 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Change "man" in two places to "map"
 
Old 02-23-2007, 12:48 AM   #4
hencehungry
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
I couldn't have asked for better support. You don't get this in a multinational corporation!!

Added the "map" commands and got this (I think I have got this before but forgot to mention it in my original post):

Error 12: Invalide device requested

However, when I issue the "root (hd0,4)" command in the grub prompt, I get:

filesystem type is fat, partition type 0xb
 
Old 02-23-2007, 01:14 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Oops! My bad. I made three errors.

change this:
Other
rootnoverify (hd0,4)
man (hd0,4) (hd0,0)
man (hd0,0) (hd0,4)
makeactive
chainloader +1

to this:
Other
root (hd0,4)
map (hd0,4) (hd0,0)
map (hd0,0) (hd0,4)
makeactive
chainloader +1

I just had this problem with the wife's laptop a couple of days ago and make pretty much the same error. I don't know why 'root' and 'rootnoverify' didn't work the same.

From 'Solving Boot Problems with Grub - 2nd Edition'
12 : Invalid device requested
This error is returned if a device string is recognizable but does
not fall under the other device errors.

So, I'd gather that the string in this case is the difference between root and rootnoverify. At any rate, it's worth a try.

I have seen alternative configurations, such as:
Other
rootnoverify
root (hd0,4)
man (hd0,4) (hd0,0)
man (hd0,0) (hd0,4)
makeactive
chainloader +1

Last edited by bigrigdriver; 02-23-2007 at 01:17 AM.
 
Old 02-23-2007, 02:09 PM   #6
hencehungry
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
will I did try using root instead of rootnoverify ... got the same Error 12.

So now I don't know whether my winxp partition is messed up during the install of fc6 or something else.

Any suggestion is appreciated!
 
Old 02-23-2007, 02:50 PM   #7
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware 14.1 (32 and 64 bit)
Posts: 1,594

Rep: Reputation: 125Reputation: 125
EDIT: Ups, maybe misread your post. I read FAT12 as FAT32. Never saw FAT12 before. So my post will be of no help I guess ...


I'm not that familiar with grub, but I wonder why you call hd0,4 instead hd0,0 -- if I understand your fdisk output right, Windows is on the first partition of your hard disk?

My grub 0.97 Windows configuration part:

title Windows
root (hd0,0)
chainloader +1

Last edited by titopoquito; 02-23-2007 at 02:51 PM.
 
Old 02-23-2007, 04:01 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
My prediction is XP is booted by whatever in the hda1, which has a fat12 filing system for an ancient Dos. The partition ID is shown "1" so it cannot be a fat32 which would have a partition type "c" or "b" depending LBA mode is used or not.

XP has left its NTLDR there and the Dos is dual booting itself and XP.

XP should boot by
Code:
title XP boot from hda1 known to Grub as (hd0,0)
root (hd0,0)
chainloader +1

Last edited by saikee; 02-23-2007 at 08:01 PM.
 
Old 02-23-2007, 04:21 PM   #9
xxAlk3XKidXx
Member
 
Registered: Dec 2005
Distribution: Debian Etch and Sid... FTW!
Posts: 38

Rep: Reputation: 15
If you can't get it to work, boot up the XP install disk. Instead of installing, go to the recovery console and when you are at the prompt type: FIXMBR or FIX MBR (cant remember exactly what it is, so check the help). That will reinstall ntloader (the windows bootloader) to the Master Boot Record. Then reinstall grub from floppy or from cd. If you decide to do it this way, print out the page from the grub documentation:
http://www.gnu.org/software/grub/man...l#Installation
 
Old 02-23-2007, 07:58 PM   #10
hencehungry
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
GOT IT! root (hd0,0) did the trick. Thanks to all!
 
  


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
GRUB and Win SATA boot rizzy MEPIS 3 08-29-2005 11:58 AM
win xp Pro will not boot from Grub menu wrogers814 Red Hat 10 09-10-2004 06:48 PM
Win 98 won't boot from hdb0 with GRUB mlse Linux - Newbie 4 02-09-2004 05:33 PM
RH 9 and Win XP dual boot, no GRUB upon boot? VKellyV Linux - Newbie 17 08-13-2003 03:02 AM
Grub doesn't boot Win XP peterjmag Linux - General 8 05-03-2002 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration