Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub and Windows
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
limewolf
Tux's lil' helper
Tux's lil' helper


Joined: 13 Aug 2002
Posts: 75
Location: UK

PostPosted: Sat Aug 31, 2002 8:30 pm    Post subject: Grub and Windows Reply with quote

I hope this is about the right the forum for this one, I have Gentoo working fine across all my machines, just my dual boot machine doesn't seem very happy booting windows after I've installed Gentoo...

Basically, I can boot Gentoo fine, but my Windows XP installation doesn't work. I don't use it much but need it for certain software I don't have for Linux.

My grub menu file is like this:

default 0
timeout 30
splashimage=(hd0,4)/boot/grub/splash.xpm.gz

title=Gentoo Linux
root (hd1,3) # my /boot partition
kernel /boot/bzImage root=/dev/hda1 # my root partition

title=Windows XP
root (hd1,0) # Windows XP FAT 32 drive
chainloader +1

My hardware set up is like this... 2 IBM drives, first one contains grub and one partition (root), second contains...

<FAT32 C></boot><Swap><FAT32 D>

So for grub windows is at (hd1,0), if I've got things right and so the above /should/ work... but it doesn't.

(I guess it's probably a bit of an odd setup, a product of a hardrive faliure and some lazyness on my part.)

Can anyone suggest somthing that might help me, am I missing somthing here, does it sound like it makes sense?

(If you want more info, please just ask.)

Thanks!
_________________
Chris Egan
Back to top
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Sat Aug 31, 2002 11:23 pm    Post subject: Reply with quote

Have a look at GRUB's Documentation and FAQ.

Especially this Q: 10. How to boot Windows (or DOS) from a non-first disk?
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Sun Sep 01, 2002 3:27 am    Post subject: Reply with quote

yeah, mapping is probably the best way to eliminate this issue.
Your booting from hd1 which is hdb. XP has issues with booting off anything but the primary disk.
Back to top
View user's profile Send private message
limewolf
Tux's lil' helper
Tux's lil' helper


Joined: 13 Aug 2002
Posts: 75
Location: UK

PostPosted: Sun Sep 01, 2002 9:31 am    Post subject: Reply with quote

arkane wrote:
yeah, mapping is probably the best way to eliminate this issue.
Your booting from hd1 which is hdb. XP has issues with booting off anything but the primary disk.


I did think of this one and tried adding...

map (hd1,1) (hd0,0)

...after the 'title' command, but it didn't help, basically grub just gives me a booting windows xp etc message but doesn't print or do anything showing it's even found the windows stuff. This is just the same as before.

I'm finding it a bit odd, like my C drive has been damaged, but mounting it under linux shows it's all there as far as I can tell.

Thanks... Chris.
_________________
Chris Egan
Back to top
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Sun Sep 01, 2002 11:37 am    Post subject: Reply with quote

limewolf wrote:
arkane wrote:
yeah, mapping is probably the best way to eliminate this issue.
Your booting from hd1 which is hdb. XP has issues with booting off anything but the primary disk.


I did think of this one and tried adding...

map (hd1,1) (hd0,0)

Thanks... Chris.


map is used for switching drives virtually, not partitions!
Read about it here:


What you need to add at your XP entry is:
Code:

map (hd0) (hd1)
map (hd1) (hd0)


So your /boot/grub/menu.lst has to be something like this (I didn't adjust the Gentoo entry):

Code:

default 0
timeout 30
splashimage=(hd0,4)/boot/grub/splash.xpm.gz

title=Gentoo Linux
root (hd1,3)
kernel /boot/bzImage root=/dev/hda1

title=Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
chainloader +1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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