LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-02-2005, 10:31 AM   #1
volgn
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
splashimage=(hd1,1)/grub/splash.xpm.gz

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)
makeactive
chainloader +1

Please help
 
Old 06-02-2005, 12:39 PM   #2
rarsa
Member
 
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:
Code:
default 0
timeout 30
splashimage=(hd1,0)/grub/splash.xpm.gz

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)
makeactive
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)
Code:
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 12:43 PM.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:19 AM.

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