LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   gentoo -- how do i properly config grub for a dual boot system (https://www.linuxquestions.org/questions/linux-distributions-5/gentoo-how-do-i-properly-config-grub-for-a-dual-boot-system-130818/)

Laptop2250 01-02-2004 08:08 AM

gentoo -- how do i properly config grub for a dual boot system
 
I have Windows XP Home, and I want to install Gentoo on my pc. I have successfully done a stage 1 install twice with the exception of boot loader options. I so far have been doing this as my partition setup
Code:

/hda1 Windows XP | ntfs
/hda2 Linux (boot partition, grub) | ext3
/hda3 Linux (swap) | swap
/hda4 Linux (root) | reiser

This is how I set up grub on the Master Boot Record (chap 23 in grub install manual, www.gentoo.org) Grub is set up so it (to my understanding) whatever hda# -1, so Windows XP would be 0,0 Linux root partition would be 0,3. This is why in the below I tried to make root(0,1) which the gentoo install said should be my boot partition, but that didn't work.
Code:

grub
root(0,0) <-- when I did (0,1) which is my actual boot partition, this didn't work
setup(hd0) <-again i tried hd1(my boot partition) but it didn't work so i did hd0

This is what I entered for my grub.conf file
Code:

default 0
timeout 10
splashimage=(hd0,0) /boot/grub/splash.xpm.gz <--i see blueish screen at grub

title=Gentoo
root(hd0,0)
kernel (hd0,0) /boot/bzImage root=/dev/hda4

title= Windows XP
root (0,5)
chainloader (hd0,5)+1

When I restart my system I take out the Gentoo CD, and I see the Grub loader. I press enter to try to enter Gentoo, gives me Error 15. When I try to enter Windows it says partition does not exist. What can I do to fix this? If you need more information please ask.

acid_kewpie 01-02-2004 08:13 AM

Code:

title=Gentoo
root(hd0,0)
kernel (hd0,0) /boot/bzImage root=/dev/hda4

should be
Code:

title=Gentoo
root(hd0,3)
kernel (hd0,1)/bzImage root=/dev/hda4

and i've no idea where you got (hd0,5) from on a 4 partition drive.... :confused:

rberry88 01-02-2004 09:38 AM

And your Windows selection in grub would look like this:

Code:

title Windows XP
chainloader +1

rberry88

Laptop2250 01-02-2004 08:19 PM

by
Code:

title Windows XP
chainloader +1

the final should be

title= Windows XP
root (0,0)
chainloader (hd0,0)+1

right? Or should it be exactly as you said rberry?


All times are GMT -5. The time now is 08:36 AM.