LinuxQuestions.org
Visit Jeremy's Blog.
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 10-08-2005, 09:41 PM   #1
j3nnifers
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Rep: Reputation: Disabled
GRUB error -- dual booting Linux and WinXP


...

Last edited by j3nnifers; 01-04-2011 at 12:26 PM.
 
Old 10-08-2005, 11:21 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
I keep getting "Error 21: selected disk does not exist" when I try to boot as WindowsXP
and then it says push any key to continue...and I'm returned to initial grub boot-up page (where I choose which OS I want to run). Intuition tells me that this problem is some sort of newbie-like error that I'm overlooking...
Your ubuntu installer was smart enough to try the map/map trick, but it does not always work. The problem is Windows throws a fit if it is not on the first physical drive in the system.

Back up your menu.lst, and try these changes to the Windows entry:
Code:
title Microsoft Windows XP Professional
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify	(hd0,0)
makeactive
chainloader +1
Have a look at the manual if you want to read more on this problem: http://www.gnu.org/software/grub/man...2fWindows.html
 
Old 10-09-2005, 07:25 AM   #3
j3nnifers
LQ Newbie
 
Registered: Oct 2005
Posts: 7

Original Poster
Rep: Reputation: Disabled
...

Last edited by j3nnifers; 01-04-2011 at 12:26 PM.
 
Old 10-22-2005, 09:17 AM   #4
chazoroch
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
I recently solved a similar problem (about 1 hour ago).
Windows and Linux were separately installed on two different drives.
So both OS(s) thought they were on the master drive.

There is a small difference in the GRUB config for my Windows selection:

title Windows XP (On Slave)
rootnoverify (hd1,0)
# begin magic
map (hd0) (hd1)
map (hd1) (hd0)
# end magic
makeactive
chainloader +1

The hardware configuration is Linux on the primary master and Windows on the primary slave.
In the config above "rootnoverify (hd1,0)" is done first and references the Windows slave drive.
The "magic" section then remaps the slave to the master which probably keeps Windows happy.
"makeactive" probably has no effect. There is no reference to a drive in the 'chainloader".

I spent part of last week trying different approaches. My original Linux install wiped out my Windows drive which is why I installed them separately with only 1 of the 2 drives in my machine at a time. And then when I put the two together that was when the fun began. Several posts talked about creating a Linux.bin from the Linux /boot drive, tried it, it didn't work. And others talked about installing GRUB on the Windows drive which I thought might corrupt the MBR and the ntldr would no longer work which would wipe out the drive again.

Anyways the Windows drive is completely portable, it could be installed in a fresh computer and work. And I refused to put the GRUB or any part of Linux on the drive due to Linux install wiping it out previously.

The bottom line is the map "magic" fools Windows into thinking it's the master, the ntldr executes and it works!
 
Old 06-27-2006, 03:13 PM   #5
rbad
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Rep: Reputation: 0
boot error

Quote:
Originally Posted by chazoroch
I recently solved a similar problem (about 1 hour ago).
Windows and Linux were separately installed on two different drives.
So both OS(s) thought they were on the master drive.

There is a small difference in the GRUB config for my Windows selection:

title Windows XP (On Slave)
rootnoverify (hd1,0)
# begin magic
map (hd0) (hd1)
map (hd1) (hd0)
# end magic
makeactive
chainloader +1

The hardware configuration is Linux on the primary master and Windows on the primary slave.
In the config above "rootnoverify (hd1,0)" is done first and references the Windows slave drive.
The "magic" section then remaps the slave to the master which probably keeps Windows happy.
"makeactive" probably has no effect. There is no reference to a drive in the 'chainloader".

I spent part of last week trying different approaches. My original Linux install wiped out my Windows drive which is why I installed them separately with only 1 of the 2 drives in my machine at a time. And then when I put the two together that was when the fun began. Several posts talked about creating a Linux.bin from the Linux /boot drive, tried it, it didn't work. And others talked about installing GRUB on the Windows drive which I thought might corrupt the MBR and the ntldr would no longer work which would wipe out the drive again.

Anyways the Windows drive is completely portable, it could be installed in a fresh computer and work. And I refused to put the GRUB or any part of Linux on the drive due to Linux install wiping it out previously.

The bottom line is the map "magic" fools Windows into thinking it's the master, the ntldr executes and it works!

I too had the same problem. However i did'nt solve it by adding the #magic line. The issue was solve with...

title Microsoft Windows XP Professional
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
makeactive
chainloader (hd1,0)+1


The change being "chainloader (hd1,0)+1"
Seems to work fine now.

Last edited by rbad; 06-27-2006 at 03:17 PM.
 
  


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
Dual boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 05:13 PM
Dual-booting MEPIS and WinXP, I want Grub to default to WinXP jjf Linux - Newbie 8 01-19-2006 04:27 AM
Grub gives "Invalid disk" when dual booting WinXP Archeantus Linux - General 12 06-02-2005 09:47 PM
Dual Booting WinXP/MDK with Lilo and Grub StealthSpectar Mandriva 5 11-09-2004 02:02 PM
GRUB: Dual booting Linux and WinXP with SCSI involved Judicator Linux - General 1 07-29-2003 04:58 PM


All times are GMT -5. The time now is 05:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration