Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dual hd's grub question (SOLVED) Thanks!
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
LostSon
Guru
Guru


Joined: 21 Nov 2003
Posts: 514
Location: Wisconsin

PostPosted: Sat Jan 17, 2004 5:29 am    Post subject: dual hd's grub question (SOLVED) Thanks! Reply with quote

Ok i have gentoo as my master and XP on a second hd as the slave
Now when i ran RedHat I added this to my grub.conf

#boot=/dev/hdb
title Winblows
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
boot

Now i have added this to my grub in gentoo and no luck i keep getting kernel must b loaded first or invalid or unsupported executable format. I wouldnt think grub would b that different between distros but i could b wrong. Any ideas :?:


Last edited by LostSon on Sun Jan 18, 2004 5:37 am; edited 1 time in total
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


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

PostPosted: Sat Jan 17, 2004 5:39 am    Post subject: Reply with quote

From the error you are getting, it sounds like a small typo, or a missing space on the chainloader line, or something.

I use a simpler setup for booting Windows from the second harddrive.
Code:
title Winblows
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1
Back to top
View user's profile Send private message
LostSon
Guru
Guru


Joined: 21 Nov 2003
Posts: 514
Location: Wisconsin

PostPosted: Sat Jan 17, 2004 6:02 am    Post subject: Reply with quote

well i tried your version and still no luck im not sure why this isnt coming out like it always has b4 damn the luck. If it wasnt for bad luck i wouldnt have any :x still no luck
Back to top
View user's profile Send private message
LostSon
Guru
Guru


Joined: 21 Nov 2003
Posts: 514
Location: Wisconsin

PostPosted: Sat Jan 17, 2004 1:49 pm    Post subject: Reply with quote

Anyone else got any ideas been at it most of the night googling for an answer :o
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


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

PostPosted: Sat Jan 17, 2004 6:50 pm    Post subject: Reply with quote

Is Windows able to boot on its own if you unplug the harddrive with Gentoo on it ?

If not, you will need to repair the Windows bootloader before GRUB's chainloader command will actually work.
Back to top
View user's profile Send private message
LostSon
Guru
Guru


Joined: 21 Nov 2003
Posts: 514
Location: Wisconsin

PostPosted: Sat Jan 17, 2004 8:57 pm    Post subject: Reply with quote

yes if i remove the gentoo hd, switch the jumper to master on XP it boots right up.
Back to top
View user's profile Send private message
LostSon
Guru
Guru


Joined: 21 Nov 2003
Posts: 514
Location: Wisconsin

PostPosted: Sun Jan 18, 2004 12:48 am    Post subject: Reply with quote

here is my grub.conf ive been at it all day today too and no luck maybe u will see something i missed. Im taking a brk my eyes are killing me. Time for a beer

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

title=Gentoo Linux (genkernel)
root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.22-gentoo-r3 root=/dev/hda3
initrd (hd0,0)/boot/initrd-2.4.22-gentoo-r3

#boot=/dev/hdb
title Winblows
map(hd0) (hd1)
map(hd1) (hd0)
rootnoverify(hd1,0)
makeactive
chainloader +1
boot

thanks for your help :(
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


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

PostPosted: Sun Jan 18, 2004 1:46 am    Post subject: Reply with quote

I know GRUB can be quite picky at times, but each GRUB command needs a space ( ) or an equals (=) after it. Your first post had the correct spacing, and should have worked perfectly. The grub.conf that you just posted is missing spaces after "map" and "rootnoverify" commands, which could cause the errors you are getting.

Otherwise, it looks OK.
Back to top
View user's profile Send private message
LostSon
Guru
Guru


Joined: 21 Nov 2003
Posts: 514
Location: Wisconsin

PostPosted: Sun Jan 18, 2004 5:36 am    Post subject: Reply with quote

ok well i got it. In my fstab i had the boot permissions set to 1 2 im not sure why i did this but i did. So i changed them to 1 1 and now it works like a dream. See who says beer is bad for you. I was having a few and i started thinking about my fstab file and the install instructions and i remember in there it said id should b 1 1 so i changed it back and whamo it worked. Thanks for all your help guy i appreciate it :lol:
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


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

PostPosted: Sun Jan 18, 2004 5:55 am    Post subject: Reply with quote

I'm glad to hear that a few beers did the trick :D
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