Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub + dualboot, can't boot winXP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
marcus
n00b
n00b


Joined: 20 Jun 2002
Posts: 37
Location: Skjern, Denmark

PostPosted: Tue Feb 15, 2005 7:51 am    Post subject: grub + dualboot, can't boot winXP Reply with quote

I have just installed Gentoo on my laptop which already had XP installed. The problem is that I can't boot WinXP.

My partition table:
Code:
Device    Boot Start  End Id System
/dev/hda1  *       1    5 83 Linux
/dev/hda2       1097 3647  f W95 Ext'd (LBA)
/dev/hda3          6   68 82 Linux swap
/dev/hda4         69 1069 83 Linux
/dev/hda5       1097 3647  7 HPFS/NTFS


My grub.conf:

Code:
title=Gentoo Linux
root (hd0,0)
kernel /kernel-2.6.10-gentoo-dev root=/dev/hda4

title=Windows XP
rootnoverify (hd0,4)
makeactive
chainloader +1


When booting Windows XP I recieve the following message:

Code:
rootnoverify (hd0,4)
makeactive

Error 12: Invalid device requested


Can anyone explain this error? I have looked around this forum and I have googled to find solutions, but I haven't solved it yet. I have tried almost every combination of hiding and mapping in the grub.conf file. Any help at all appreciated.
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580
Location: Salt Spring Island, BC, Canada

PostPosted: Tue Feb 15, 2005 8:03 am    Post subject: Re: grub + dualboot, can't boot winXP Reply with quote

Try:
Code:
title=Gentoo Linux
root (hd0,0)
kernel /kernel-2.6.10-gentoo-dev root=/dev/hda4

title=Windows XP
rootnoverify (hd0,4)
makeactive
chainloader (hd0,4)+1

_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
eerok
n00b
n00b


Joined: 14 Feb 2005
Posts: 69
Location: Canada

PostPosted: Tue Feb 15, 2005 8:07 am    Post subject: Reply with quote

According to your partition table, winXP is on (hd0,1) not (hd0,4).
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Tue Feb 15, 2005 9:45 am    Post subject: Reply with quote

Would you like to expand on that comment eerok ???.

marcus, this was an XP machine initially ???.
On an extended partition ???.
Explain how you did that please - or at least what you did to build the system as it currently is.
Back to top
View user's profile Send private message
eerok
n00b
n00b


Joined: 14 Feb 2005
Posts: 69
Location: Canada

PostPosted: Tue Feb 15, 2005 10:16 am    Post subject: Re: grub + dualboot, can't boot winXP Reply with quote

I was misled by the first win partition ... nm, lol

I'm getting a bit cross-eyed with unix installation stuff, should sleep instead.

--


Last edited by eerok on Tue Feb 15, 2005 10:22 am; edited 3 times in total
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2279
Location: Paris - France

PostPosted: Tue Feb 15, 2005 10:16 am    Post subject: Reply with quote

Instead of this:
Code:
Device    Boot Start  End Id System
/dev/hda1  *       1    5 83 Linux
/dev/hda2       1097 3647  f W95 Ext'd (LBA)
/dev/hda3          6   68 82 Linux swap
/dev/hda4         69 1069 83 Linux
/dev/hda5       1097 3647  7 HPFS/NTFS


You can also try this:
Code:
Device    Boot Start  End Id System
/dev/hda1          1    5 83 Linux
/dev/hda2       1097 3647  f W95 Ext'd (LBA)
/dev/hda3          6   68 82 Linux swap
/dev/hda4         69 1069 83 Linux
/dev/hda5  *    1097 3647  7 HPFS/NTFS


And see what happens ;)
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580
Location: Salt Spring Island, BC, Canada

PostPosted: Tue Feb 15, 2005 10:22 am    Post subject: Re: grub + dualboot, can't boot winXP Reply with quote

eerok wrote:
Code:
/dev/hda2       1097 3647  f W95 Ext'd (LBA)
...
rootnoverify (hd0,4)


WinXP is on the second partition, not the fifth.

Looks like he's trying to boot winXP off of linux /

--

Unless I am really misreading this, I think that partition 2 (hda2) is actually an extended partition and partition 5 (hda5) actually contains the NTFS file system (and therefore by my guess the Windows XP installation)...
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2279
Location: Paris - France

PostPosted: Tue Feb 15, 2005 10:24 am    Post subject: Re: grub + dualboot, can't boot winXP Reply with quote

TheRAt wrote:
eerok wrote:
Code:
/dev/hda2       1097 3647  f W95 Ext'd (LBA)
...
rootnoverify (hd0,4)


WinXP is on the second partition, not the fifth.

Looks like he's trying to boot winXP off of linux /

--

Unless I am really misreading this, I think that partition 2 (hda2) is actually an extended partition and partition 5 (hda5) actually contains the NTFS file system (and therefore by my guess the Windows XP installation)...


+1 Ultimately! :D
Back to top
View user's profile Send private message
eerok
n00b
n00b


Joined: 14 Feb 2005
Posts: 69
Location: Canada

PostPosted: Tue Feb 15, 2005 10:25 am    Post subject: Reply with quote

Yep, I was fixing that when you posted.

I've done several installs this week: freebsd, netbsd, and now gentoo ...

I'm starting to drool and twitch a bit right about now.

--
Back to top
View user's profile Send private message
marcus
n00b
n00b


Joined: 20 Jun 2002
Posts: 37
Location: Skjern, Denmark

PostPosted: Tue Feb 15, 2005 12:37 pm    Post subject: Reply with quote

syg00 wrote:
marcus, this was an XP machine initially ???.
On an extended partition ???.
Explain how you did that please - or at least what you did to build the system as it currently is.


I know the partition table is fucked up. It is a rather long and complicated story, but here goes...:

I bought the laptop (Toshiba Portege 2010) with XP installed, however, I wanted a reinstallation. Since the machine has no floppy and cdrom drives and since its BIOS cannot USB-boot, I had but one option left: netboot via pxe. I managed to start a Win2003 Server with RIS, however, as my winXP installation cd is just an upgrade (even though it can install XP from scratch), RIS wouldn't accept it. So then I used Partition Magic to resize the existing NTFS partition, and from within the existing Windows I (via my usb cd-drive) installed a new and fresh XP to the remaining space. Apparantly windows made it an extended partition! After having installed XP I then installed Gentoo on the space occupied by the initial Windows.

Perhaps the odd-looking partition table is why it won't work. I'm sorry but none of your suggestions worked. Perhaps installing LILO instead...?
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Tue Feb 15, 2005 12:51 pm    Post subject: Reply with quote

Ahhhh !!! - you see, the reason for my question.

Shit out of luck fella - Windows will only boot freom a PRIMARY partition.
You can fiddle it, but the ntldr and ancillary bits and pieces must be on a primary partition.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Tue Feb 15, 2005 1:18 pm    Post subject: Reply with quote

syg00 wrote:
Ahhhh !!! - you see, the reason for my question.

Shit out of luck fella - Windows will only boot freom a PRIMARY partition.
You can fiddle it, but the ntldr and ancillary bits and pieces must be on a primary partition.

To clarify on that, your XP partition is on /dev/hda5. Primary partitions are /dev/hda[1-4].
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
marcus
n00b
n00b


Joined: 20 Jun 2002
Posts: 37
Location: Skjern, Denmark

PostPosted: Tue Feb 15, 2005 2:56 pm    Post subject: Reply with quote

syg00 wrote:
Shit out of luck fella - Windows will only boot freom a PRIMARY partition.


Well, at least that explains the problem. Thank you for all your replies. I think I will do a total reformat and reinstall; I may have found another way to install Xp via pxe.

A short Gentoo experience this time, but I will be back very soon... ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum