LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 01-02-2004, 08:08 AM   #1
Laptop2250
Member
 
Registered: Oct 2003
Posts: 131

Rep: Reputation: 15
Exclamation 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.
 
Old 01-02-2004, 08:13 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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....
 
Old 01-02-2004, 09:38 AM   #3
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
And your Windows selection in grub would look like this:

Code:
title Windows XP
chainloader +1
rberry88
 
Old 01-02-2004, 08:19 PM   #4
Laptop2250
Member
 
Registered: Oct 2003
Posts: 131

Original Poster
Rep: Reputation: 15
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Grub necessary for Dual boot system JOR000 Linux - General 6 09-02-2005 12:28 PM
Dual boot grub config file on SuSE theSandMan Linux - Newbie 3 01-19-2005 07:34 PM
help! grub does not boot the system! dual HD, 3 OS parv Fedora 3 08-31-2004 08:40 AM
GRUB hangs after RH9 install with dual boot config AXR23 Linux - Newbie 3 04-25-2004 09:18 PM
GRUB for LINUX to boot dual system kpilaiku Linux - General 2 04-11-2003 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration