LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-14-2006, 02:02 AM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
help with grub and gentoo


i am trying to put together a gentoo box for a friend. this is my first real attempt at using gentoo and it all went well until the reboot.

grub is giving me file not found error.

here is the grub from the HOWTO, then ill post the grub i used:

Code:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.12-r10
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.12-gentoo-r10 root=/dev/ram0 init
initrd /boot/initfamfs-genkernel-x86-2.6.12-gentoo-r10
the only differance is that the kernel i downloaded and compiled is the 2.6.16 with a r12... so i changed those 2 parts of grub, but no luv.

help, how do i find out what path/name to use to get this to boot.

i am coming from you on that computer using knoppix atm. so i have access to the files, but for what ever reason /boot is empty on that drive.
 
Old 07-14-2006, 02:10 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
I think your error is in the line below
Code:
kernel /boot/kernel-genkernel-x86-2.6.12-gentoo-r10 root=/dev/ram0 init
Change the root section so that its /dev/hda1 (or whatever your main hard drive is labelled e.g. /dev/sda1).
 
Old 07-14-2006, 02:18 AM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Original Poster
Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
main hard drive as in / partition?

hda1 = boot
hda2 = swap
hda3 = /

so for grub that would be hd0,0 for boot and hd0,2 for / yes?

oh and i tried changing the root=/dev/ram0 to /dev/hda1, should i change that to 3?
 
Old 07-14-2006, 04:55 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
If root (/) is /dev/hda3, then thats what you need to use instead of /dev/hda1.
 
Old 07-14-2006, 10:10 AM   #5
Dertanions
LQ Newbie
 
Registered: Jul 2006
Distribution: Debian / Cent 4
Posts: 8

Rep: Reputation: 0
This is the Fiend (and first time post). I tried the following grub commands and still no workie.

root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.16-gentoo-r12 root=/dev/hda3 init
initrd /boot/initfamfs-genkernel-x86-2.6.16-gentoo-r12

Last edited by Dertanions; 07-14-2006 at 10:16 AM.
 
Old 07-14-2006, 03:52 PM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Original Poster
Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
problem solved:

1. i had the wrong name of the kernel and initrd. both should of been x86-2.6.16-gentoo-r12, not i686 and r10.

yes it was also supposed to be /dev/hda3 not /dev/ram0 or /dev/hda1.

2nd issue we had was i screwed up /etc/fstab as when i edited the fstab i left in the default info from the liveCD thus we had /dev/BOOT and /dev/ROOT going to vert. locations. once i commented those out, fixed the grub.conf i was able to get it to boot 80% before an error.

the new error is that it can not find the root section and asks for its location:

answere is /dev/hda3 just like i have in the grub.conf... so confused there, but once i populate that info it boots just fine.

have kde downloading and installing now, i will work more on it later, but if any of you gentoo experts out there can tell me why it is giving me an error about not finding the /dev/hda3 even though that info is in grub.conf id appriciate it.

when i get a chance (later this weekend maybe) ill post the grub.conf and a detailed error report.

thanks.
 
  


Reply


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 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 CheeseManD Linux - Newbie 2 04-27-2003 12:48 PM
Gentoo and Grub Arleta Linux - Newbie 1 01-06-2003 03:11 PM
Help me w/ Grub on Gentoo bax Linux - Newbie 24 07-26-2002 07:54 PM

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

All times are GMT -5. The time now is 04:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration