View previous topic :: View next topic |
Author |
Message |
LostSon Guru
Joined: 21 Nov 2003 Posts: 514 Location: Wisconsin
|
Posted: Sat Jan 17, 2004 5:29 am Post subject: dual hd's grub question (SOLVED) Thanks! |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Jan 17, 2004 5:39 am Post subject: |
|
|
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 |
|
|
LostSon Guru
Joined: 21 Nov 2003 Posts: 514 Location: Wisconsin
|
Posted: Sat Jan 17, 2004 6:02 am Post subject: |
|
|
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 still no luck |
|
Back to top |
|
|
LostSon Guru
Joined: 21 Nov 2003 Posts: 514 Location: Wisconsin
|
Posted: Sat Jan 17, 2004 1:49 pm Post subject: |
|
|
Anyone else got any ideas been at it most of the night googling for an answer |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Jan 17, 2004 6:50 pm Post subject: |
|
|
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 |
|
|
LostSon Guru
Joined: 21 Nov 2003 Posts: 514 Location: Wisconsin
|
Posted: Sat Jan 17, 2004 8:57 pm Post subject: |
|
|
yes if i remove the gentoo hd, switch the jumper to master on XP it boots right up. |
|
Back to top |
|
|
LostSon Guru
Joined: 21 Nov 2003 Posts: 514 Location: Wisconsin
|
Posted: Sun Jan 18, 2004 12:48 am Post subject: |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sun Jan 18, 2004 1:46 am Post subject: |
|
|
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 |
|
|
LostSon Guru
Joined: 21 Nov 2003 Posts: 514 Location: Wisconsin
|
Posted: Sun Jan 18, 2004 5:36 am Post subject: |
|
|
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 |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sun Jan 18, 2004 5:55 am Post subject: |
|
|
I'm glad to hear that a few beers did the trick |
|
Back to top |
|
|
|