LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-19-2006, 04:22 PM   #1
wilsonsamm
Member
 
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Rep: Reputation: 15
Gentoo and grub


I recently installed Gentoo, a long and tedious process
and now it won't boot. I keep on getting Error 15

Can anyone explain how the grub.conf works? none of the files there can be found. Are the paths in grub.conf relative to the partition that accommodates grub or to the root directory?
 
Old 02-19-2006, 04:32 PM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Grub uses different hard drive naming conventions to Linux.

Simply put, hda1 will be hd0,0; hda2 will be hd0,1; hdb1 will be hd1,0

To find files, you have to mount a partition as root - something like "root (hd0,0)" - and then the files should be visible as normal.
 
Old 02-19-2006, 04:37 PM   #3
wilsonsamm
Member
 
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Original Poster
Rep: Reputation: 15
I'm sure grub is on a partition of its own, hda1.
hda2 is my swapspace
and hda3 is my root.

I suppose hda3 will correspond to hd(0,2)?

I think I get it. I first mount hd(0,2) as root, then all paths to kernels and suchlikes will be relative to that.
Do I really need an initrd?
 
Old 02-19-2006, 06:19 PM   #4
justanothersteve
Member
 
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161

Rep: Reputation: 30
Grub is confusing at first glance, but is picked up easily. Grub simply begins counting at 0 instead of 1, See the following

hda1 = hd(0,0)
hda2 = hd(0,1)
hda3 = hd(0,2)
hda4 = hd(0,3)
hda5 = hd(0,4)

hdb1 = hd(1,0)
hdb2 = hd(1,1)
hdb3 = hd(1,2)

etc...

EDIT: Don't forget to run grub-install /dev/hda

Last edited by justanothersteve; 02-19-2006 at 07:05 PM.
 
Old 02-19-2006, 07:10 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by wilsonsamm
Do I really need an initrd?
If you used genkernel, yes.
Best place for q's like this is probably forums.gentoo.org - but in the meantime, let's see /boot/grub/grub.conf.
In need, boot the CD and do the mounts as per the handbook - then the filename will be /mnt/boot/grub/grub.conf.

If you want to go the whole way, you can chroot back in and run from the HD system.
 
Old 02-20-2006, 08:32 AM   #6
wilsonsamm
Member
 
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Original Poster
Rep: Reputation: 15
What is an intird?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
Grub and gentoo GaMeS Linux - Newbie 2 10-23-2005 10:08 AM
need help with grub/gentoo tried everything makaveli0129 Linux - Laptop and Netbook 4 12-14-2004 05:39 AM
Gentoo and Grub Arleta Linux - Newbie 1 01-06-2003 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:59 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