LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-17-2004, 04:09 PM   #1
rj686
Member
 
Registered: Sep 2004
Distribution: Ubuntu, Mepis
Posts: 83

Rep: Reputation: 15
not finding gentoo


grub doesnt find my gentoo

error 15:file not found

kernel /kernel-2.6.8-gentoo-r10 root=/dev/hda4


my linux setup is

title=gentoo
root (hd0,1)-(is this supposed to b the root partition or the boot)
kernel /kernel-2.6.8-gentoo-r10 root=/dev/hda4
 
Old 10-17-2004, 04:19 PM   #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
hda4? are you sure that's right? you'll only ever get an hda4 if you have only 4 primary partitions on your system and nothing else. In grub you can use tab completion to search for filenames like in bash if the file name is wrong, also always place the partition name on the kernel line too, e.g. "kernel (hd0,3)/kernel-2.6.8"

you also define two different roots... hd0,0 = hda1..... what's with that?
 
Old 10-17-2004, 04:19 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
root (hd0,1) should be your boot partition and root= should be your / partition.

Can you post the output of this if you are still unsure:
ls -l /boot
mount
 
Old 10-17-2004, 04:21 PM   #4
rj686
Member
 
Registered: Sep 2004
Distribution: Ubuntu, Mepis
Posts: 83

Original Poster
Rep: Reputation: 15
yes its hda4

windows-hda1
boot-hda2'
swap-hda3
root-hda4


ill try this once i reboot real quick

kernel(hd0,3)/kernel-2.6.8-gentoo-r10

yes ill boot real quick lemme go get it
 
Old 10-17-2004, 04:22 PM   #5
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
wha? no you have /boot?? obviosuly if the kernel image IS in hda2, then you want (hd0,1), which isn't mentioned anywhere yet!

OH.. duuhh sorry, yes it is there. retard.

Last edited by acid_kewpie; 10-17-2004 at 04:33 PM.
 
Old 10-17-2004, 04:30 PM   #6
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
root (hd0,1)-(is this supposed to b the root partition or the boot)
that need to be the partition with the kernel file on it whatever that might be
is there a seperate /boot partition for the gentoo install or just a /boot
directory on the root (/) partition ???

if it's just a boot directory on hda4
then you go:
title=gentoo
root (hd0,3)
kernel /boot/kernel-2.6.8-gentoo-r10 root=/dev/hda4

if it's a /boot partition on hda2 then you go
title=gentoo
root (hd0,1)
kernel /kernel-2.6.8-gentoo-r10 root=LABEL=/
 
Old 10-17-2004, 04:33 PM   #7
rj686
Member
 
Registered: Sep 2004
Distribution: Ubuntu, Mepis
Posts: 83

Original Poster
Rep: Reputation: 15
sorry for all the errors lol

title=gentoo
root (hd0,1)
kernel(hd0,3)/kernel2.6.8-gentoo-r10 root=/dev/hda4



boot partition=hda2
root partiton=hda4
 
Old 10-17-2004, 04:44 PM   #8
rj686
Member
 
Registered: Sep 2004
Distribution: Ubuntu, Mepis
Posts: 83

Original Poster
Rep: Reputation: 15
to edit my grub im going to
nano -w /mnt/gentoo/grub/grub.conf

in there i have linux listed but when i boot linux doesnt even show up as an option in grub


all that shows up is windows xp

Last edited by rj686; 10-17-2004 at 04:46 PM.
 
Old 10-17-2004, 05:09 PM   #9
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
try this in stead of the last line --

kernel /kernel2.6.8-gentoo-r10 root=/dev/hda4
 
Old 10-17-2004, 05:17 PM   #10
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
ok well try going down the shell path.... get a grub shell and try "kernel (hd0,1)/" and hit tab, just like in bash. you'll be able to see there and then if the file is there. there's no need to keep rebooting to edit the config. obviosuly if you do find the file, make a note of it and edit grub.conf
 
Old 10-17-2004, 10:30 PM   #11
rj686
Member
 
Registered: Sep 2004
Distribution: Ubuntu, Mepis
Posts: 83

Original Poster
Rep: Reputation: 15
aright thanks...........ill try that
 
Old 10-17-2004, 10:46 PM   #12
rj686
Member
 
Registered: Sep 2004
Distribution: Ubuntu, Mepis
Posts: 83

Original Poster
Rep: Reputation: 15
im just going to redo the whole thing...............


when im setting up my grub config im not sure what to do? seems like everything i try is wrong


windows-hda1
boot-hda2
swap-hda3
root-hda4


title=gentoo
root (hd0.1)
kernel (hd0,?)/kernel-<kernel version>


i dont know what to put in root nor do i know where my kernel is located is it in root or boot?
 
Old 10-17-2004, 11:49 PM   #13
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
did you make ur boot partition active ???????

post the output of #fdisk -l

Last edited by UsualTuxpect; 10-17-2004 at 11:52 PM.
 
Old 10-18-2004, 09:11 PM   #14
rj686
Member
 
Registered: Sep 2004
Distribution: Ubuntu, Mepis
Posts: 83

Original Poster
Rep: Reputation: 15
how should i set up my fstab

hda1-windows
hda2-boot(ext2)
hda3-swap
hda4root(reiserfs)



i've read the manual many times but for some reason i always screw up fstab and or grub
 
Old 10-18-2004, 11:55 PM   #15
tan_newt
LQ Newbie
 
Registered: Feb 2004
Distribution: Gentoo
Posts: 10

Rep: Reputation: 0
Make sure when you make a new kernel or edit the grub config that /boot is mounted. Otherwise you'll edit a file that isn't used.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I start installing stage 3 of gentoo from universal gentoo 2005-1? kazuya1977 Linux - General 1 11-11-2005 11:30 AM
Grub/lilo problems finding gentoo kernel under vmware _M0rb Linux - Software 1 02-06-2005 09:53 AM
pkg-config error with emerge -aD gnome-python on Gentoo 2.6.9-gentoo-r6 ghrellin Linux - Software 2 12-22-2004 07:37 PM
gentoo file manager install issues (not Gentoo) windeath Fedora 2 03-01-2004 08:17 PM
Dual boot w/ Gentoo/xp pro vs. gentoo-invalid partition table bobbear Linux - Software 3 02-10-2004 05:28 PM

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

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