LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-02-2008, 06:03 PM   #1
thursgun
LQ Newbie
 
Registered: Jul 2007
Posts: 10

Rep: Reputation: 0
Gentoo: Grub: Can't boot Windows XP


Ok, this is how my single disk's partitions looks like:

Code:
From hda1 to hda6:
|----PRIMARY-------||---------------LOGICAL----------------------------|
[/boot][swap][/root][extended for logical][windowsXP][many random files]
First I installed Windows on hda4, and set hda1 with NTFS (so windows could manage the MBR..)

Then I installed Gentoo using hda1 (changed fs to ext2), hda2 and hda3. Grub is on hda1. Gentoo boots just fine with Grub.

So, then I added to /boot/grub/menu.lst the following:

Code:
#Windows XP
title windows xp
rootnotverify (hd0,4) #that would be hda5
savedefault
makeactive
chainloader +1
Then reboot, select windows xp and get this:

Code:
Booting 'Windows XP'
rootnotverify (hd0,4)
savedefault
makeactive

Error12: Invalid device requested

Press any key to continue...
How can this be fixed? Did I make something wrong with windows installation?
 
Old 09-02-2008, 06:18 PM   #2
thursgun
LQ Newbie
 
Registered: Jul 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Nvm, it seems I never should have installed windows on a logical partition.

http://users.bigpond.net.au/hermanzone/p15.htm#12_

Guess, I'll install from scratch everything again. It was new windows installation anyway.
 
Old 09-02-2008, 06:21 PM   #3
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
I'm pretty sure you have to install Windows XP on a primary partition.
 
Old 09-02-2008, 06:23 PM   #4
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
There's no need for the root and swap partitions of Gentoo to be primary, however.
 
Old 09-02-2008, 09:59 PM   #5
bcwagne
Member
 
Registered: Feb 2008
Distribution: Debian Testing
Posts: 169

Rep: Reputation: 32
Part of the problem is that Windows likes to think it is on THE partition on the machine, or in other words, it likes to be first, and just expects everything else to be second place (okay, so that was a little prejudiced on my part), so what you have to do is fool windows into thinking it is on the first partition...here is a bit from my menu.lst:

Code:
title		Windows XP Professional x64
map		(hd0,0) (hd1,0)
map		(hd1,0) (hd0,0)
rootnoverify	(hd1,0)
makeactive
chainloader	+1
Here grub is, in essence, switching which partition is first and second. Windows is actually on hd1 (which is the second hard drive), and linux is on hd0 (the first hard drive). Grub just tells windows that the first one is the second, and the second is the first, (using the map commands), then tells windows not to check (using the rootnoverify command).

Hope this helps.

Good luck.
 
Old 09-02-2008, 11:53 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by thursgun View Post
First I installed Windows on hda4, and set hda1 with NTFS (so windows could manage the MBR..)

Then I installed Gentoo using hda1 (changed fs to ext2), hda2 and hda3. Grub is on hda1.
that was a mistake.

Windoze must have a primary partition for install - for the ntldr and associated files. Even when installed into a logical partition this is still required. This is what you chainload to from grub.
Reinstall is the only answer.

No need for the mapping - that isn't required on a single disk.
 
  


Reply

Tags
boot, gentoo, grub, windows, xp



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
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
Gentoo-Im dumb and deleted /boot/boot Grub Says: Error 26 : Too many symbolic links smehi Linux - Software 5 06-24-2006 06:25 AM
GRUB on gentoo, windows and 2 hard drives volgn Linux - Software 1 06-02-2005 12:39 PM
Boot error (GRUB GENTOO) linuxnoob2287 Linux - Distributions 4 10-28-2004 04:44 AM
GRUB won't boot Gentoo Linux :( shane25119 Linux - Software 29 02-15-2004 04:41 PM

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

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