Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] grub and windows
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
nitschi
n00b
n00b


Joined: 22 Jun 2005
Posts: 61
Location: Vienna, Austria

PostPosted: Sun Jun 26, 2005 11:06 pm    Post subject: [Solved] grub and windows Reply with quote

so, next hour next problem :)
i want to run windows as 2nd os

its located at hdb1
grub config:

"title=windows
rootnoverify (hd1,0)
makeactive
chainload +1

title=gentoo
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r11 root=/dev/hda2 vga=0x31B"

gentoo starts correctly
but if i want to start windows i get nothing but :
"title=windows
rootnoverify (hd1,0)
makeactive
chainload +1"
and i crazy little white thing that is moving rapidly across the screen 8O

thx in advantage

nitschi
_________________
Brainfuck treats all characters but +-<>[],. as comments so no special syntax for a comment is needed.


Last edited by nitschi on Tue Jun 28, 2005 8:24 am; edited 1 time in total
Back to top
View user's profile Send private message
adi-beg
n00b
n00b


Joined: 26 Oct 2004
Posts: 36
Location: Tromsø

PostPosted: Mon Jun 27, 2005 12:32 am    Post subject: Reply with quote

Windows needs to be installed on C. Since it's not, you have to make it "think" it's installed in C. That's why you need to put
Code:
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)

after
Code:
title=windows

and before
Code:
rootnoverify (hd1,0)
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Jun 27, 2005 12:39 am    Post subject: Reply with quote

GRUB's map command is the correct one to use, but it only applies to entire drives, not partitions.

The Windows section in grub.conf should look like this.
Code:
title Windows
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1
Back to top
View user's profile Send private message
nitschi
n00b
n00b


Joined: 22 Jun 2005
Posts: 61
Location: Vienna, Austria

PostPosted: Mon Jun 27, 2005 7:10 am    Post subject: Reply with quote

i did what u said but now i get this error message:

ntloader is missing

is there a possible solution by using lilo?



btw: its an amd64 system
_________________
Brainfuck treats all characters but +-<>[],. as comments so no special syntax for a comment is needed.
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1173

PostPosted: Mon Jun 27, 2005 8:07 am    Post subject: Reply with quote

It seems that Grub's not looking at the right place. I am not sure that Cyrillic's "chainloader (hd1,0)+1" is required as long as the correct rootnoverify (X,Y) has been specified. Does your grub.conf look like this?
Code:
Title=windows
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
makeactive


The problem with the map command is that it relates to the BIOS mapping. If you are using any special drivers to access your drives as opposed to your BIOS calls, then it won't work.

Also, can you confirm that:

1. You do not have any other M$Windoze OS' on the same box (any drive);
2. You have not installed Grub's bootloader into /dev/hdb1, i.e. setup (hd1,0), by mistake;
3. The WinXP partition is the only partition with the active boot flag ("a" flag in fdisk).
_________________
Regards,
Mick
Back to top
View user's profile Send private message
syg00
l33t
l33t


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

PostPosted: Mon Jun 27, 2005 8:28 am    Post subject: Reply with quote

Only thing I'd add, is to check that Win *really* is on hdb1 - quite often you find a "recovery" partition first.
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