Linux - SoftwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.