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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-02-2008, 06:03 PM
|
#1
|
|
LQ Newbie
Registered: Jul 2007
Posts: 10
Rep:
|
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?
|
|
|
|
09-02-2008, 06:18 PM
|
#2
|
|
LQ Newbie
Registered: Jul 2007
Posts: 10
Original Poster
Rep:
|
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.
|
|
|
|
09-02-2008, 06:21 PM
|
#3
|
|
Member
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138
Rep:
|
I'm pretty sure you have to install Windows XP on a primary partition.
|
|
|
|
09-02-2008, 06:23 PM
|
#4
|
|
Member
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138
Rep:
|
There's no need for the root and swap partitions of Gentoo to be primary, however.
|
|
|
|
09-02-2008, 09:59 PM
|
#5
|
|
Member
Registered: Feb 2008
Distribution: Debian, OSX
Posts: 119
Rep:
|
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.
|
|
|
|
09-02-2008, 11:53 PM
|
#6
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,223
|
Quote:
Originally Posted by thursgun
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:38 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|