Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-02-2005, 11:31 AM   #1
LQ Newbie
Registered: Jun 2005
Location: Mexico
Distribution: gentoo
Posts: 1

Rep: Reputation: 0
Exclamation GRUB on gentoo, windows and 2 hard drives

I have two physical hard drives. In the first one [With two partitions] I have installed Windows XP (hd0,0) [The second partition (hd0,1) itís just for storage use] and in the second hard drive (hd1) I want to install gentoo.

I installed gentoo several times before, but never when I got two hard drives. I tried to install it with this configuration [the two hard rives] and gentoo was successfully installed, but the boot loader didnít. When gentoo ask me to restart the machine, the GRUB doesnít work, I cannot start any OS, even Windows.

grub.conf :

default 0
timeout 30

title=Gentoo Linux 2005.0
root (hd1,2)
kernel /kernel-2.6.11-gentoo-r8 root=/dev/ram0 init=/linuxrc ramdisk=8192

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

Please help
Old 06-02-2005, 01:39 PM   #2
Registered: Nov 2004
Location: Canada
Distribution: Puppy Linux/ Mint
Posts: 211

Rep: Reputation: 31
In grub the partition naming is as follows

The first number in the partition name is the HDD, the second is the partition number within, both starting from zero.

That means that
First HDD, first partition is called hd0,0
First HDD, second partition is called hd0,1
Second HDD, first partition is called hd1,0
Second HDD, second partition is called hd1,1

Confusing, eh?

Assuming that you have your partitions as follows
hd0,0: Windows
hd0,1: Shared data
hd1,0: Gentoo boot
hd1,1: Gentoo root

Your grub.conf file should look as follows:
default 0
timeout 30

title=Gentoo Linux 2005.0
root (hd1,0)
kernel /kernel-2.6.11-gentoo-r8 root=/dev/ram0 init=/linuxrc ramdisk=8192 

title=Windows XP
root (hd0,0)
chainloader +1
Note: Adjust the hdd and partition identifiers acording to your particular partitioning.

To setup grub use the following commands within the grub console (dont' type my comments):
(If your system does not boot at all, use a linux live or rescue CD to start the grub console)
root (hd1,0)          # Sets up the location of the grub stage1 file is (usually corresponds to your /boot partition)
setup (hd0)          # Installs grub in the first HDD's MBR
Please note that root(hd1,0) DOES NOT point to the linux root partition, but to the partition where your stage1, grub.conf, etc. are installed.

Last edited by rarsa; 06-02-2005 at 01:43 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
samba and windows hard drives citrus Linux - Newbie 0 01-05-2005 03:28 AM
Grub stalls when adding hard drives Xylite Linux - Hardware 3 11-05-2004 05:16 PM
Grub problem with two physical hard drives Fredstar Linux - Newbie 2 10-17-2004 03:01 PM
How many Hard Drives will Gentoo supprt? doesitfeelgood General 2 09-04-2004 04:48 PM
2 Hard drives, multi OSes, LILO & GRUB Failures B4UTRUST Linux - Newbie 1 02-29-2004 08:13 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:04 PM.

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