View previous topic :: View next topic |
Author |
Message |
nitschi n00b
Joined: 22 Jun 2005 Posts: 61 Location: Vienna, Austria
|
Posted: Sun Jun 26, 2005 11:06 pm Post subject: [Solved] grub and windows |
|
|
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
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 |
|
|
adi-beg n00b
Joined: 26 Oct 2004 Posts: 36 Location: Tromsø
|
Posted: Mon Jun 27, 2005 12:32 am Post subject: |
|
|
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
and before
Code: | rootnoverify (hd1,0) |
|
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Mon Jun 27, 2005 12:39 am Post subject: |
|
|
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 |
|
|
nitschi n00b
Joined: 22 Jun 2005 Posts: 61 Location: Vienna, Austria
|
Posted: Mon Jun 27, 2005 7:10 am Post subject: |
|
|
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 |
|
|
MickKi Veteran
Joined: 08 Feb 2004 Posts: 1173
|
Posted: Mon Jun 27, 2005 8:07 am Post subject: |
|
|
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 |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Mon Jun 27, 2005 8:28 am Post subject: |
|
|
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 |
|
|
|