Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub won't find my kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ganzor
n00b
n00b


Joined: 10 May 2006
Posts: 1

PostPosted: Wed May 10, 2006 8:41 pm    Post subject: Grub won't find my kernel Reply with quote

I have installed gentoo using the live-cd following the installation docs every instruction.

When I try to boot my system with the compiled genkernel grub stops in the command mode.
I have a /etc/grub/grub.conf according to the installation docs:
Code:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm

title=Gentoo Linux 2.6.16-r3
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.16-r3 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /boot/initramfs-genkernel-x86-2.6.16-gentoo-r3


When attemting to set the kernel in the grub commandline:
Code:
kernel (hd0,0) /kernel-genkernel-x86-2.6.16-r3

grub says that it can't find the file, that I need to supply the absolute search path.
(in the code line above I used tab to complete the file name, which in my world meens that grub finds it?!)

Growing weary of this I unmerged grub and gave Lilo a try which worked fine.

Please help I'm all out of ideas! As far as I and Lilo can tell the files are very much present.
all tips greatfully accepted.

/Ganzor
Back to top
View user's profile Send private message
nendzd
n00b
n00b


Joined: 10 Apr 2006
Posts: 68

PostPosted: Wed May 10, 2006 9:16 pm    Post subject: Re: Grub won't find my kernel Reply with quote

ganzor wrote:
I have installed gentoo using the live-cd following the installation docs every instruction.

When I try to boot my system with the compiled genkernel grub stops in the command mode.
I have a /etc/grub/grub.conf according to the installation docs:
Code:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm

title=Gentoo Linux 2.6.16-r3
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.16-r3 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /boot/initramfs-genkernel-x86-2.6.16-gentoo-r3


When attemting to set the kernel in the grub commandline:
Code:
kernel (hd0,0) /kernel-genkernel-x86-2.6.16-r3

grub says that it can't find the file, that I need to supply the absolute search path.
(in the code line above I used tab to complete the file name, which in my world meens that grub finds it?!)

Growing weary of this I unmerged grub and gave Lilo a try which worked fine.

Please help I'm all out of ideas! As far as I and Lilo can tell the files are very much present.
all tips greatfully accepted.

/Ganzor


Well.. grub does have command-completion.. so if you hit [tab], you should be able to find the correct boot image.. at the command line, if your tring to boot it by doing
Code:
kernel (hd0,0) /kernel-genkernel-x86-2.6.16-r3
it's only going to work if you have your image at the root directory, /, ... try doing
Code:
kernel (hd0,0) /boot/kernel-genkernel-x86-2.6.16-r3
... as to the rest.. I'm sorry to say I'm really not sure. I find it easier to compile the kernel with the corerct drivers and such then to rely on the auto-detect thing..

I'm kinda drunk.. so take the above with a grain of salt plz :)
Back to top
View user's profile Send private message
redo_fr
n00b
n00b


Joined: 15 Nov 2005
Posts: 20
Location: Toulouse(France)

PostPosted: Thu May 11, 2006 2:20 pm    Post subject: Reply with quote

Hi,
I have the same problem...

Try with no space between (hd0,0) and /kernel...

Code:

kernel (hd0,0)/kernel-genkernel-x86-2.6.16-r3



It works for me.
_________________
--
Redo.
Back to top
View user's profile Send private message
fuzzythebear
Guru
Guru


Joined: 28 Nov 2004
Posts: 317

PostPosted: Thu May 11, 2006 7:42 pm    Post subject: also note Reply with quote

Strange meets odd ..
To boot a machine using grub we add to add
an = to the first line

default=0

This is also working on my machine .. Dont ask ..
the install documents do say default 0
but for those 2 machines we needed the = to boot.

im still wondering .. but it works :D

Happy trails
_________________
There's this once i thought i had made a mistake .. but i was wrong :|
Back to top
View user's profile Send private message
nhm
n00b
n00b


Joined: 11 May 2006
Posts: 2

PostPosted: Thu May 11, 2006 8:03 pm    Post subject: Reply with quote

I'm assuming that you used the recommended partition layout ( hda1 = /boot, hda2 = swat, hda3 = / ). Could it be that you to change the file locations to be relative to /boot rather than to /?
Try using this for a grub.conf:
Code:

default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm

title=Gentoo Linux 2.6.16-r3
root (hd0,0)
kernel /kernel-genkernel-x86-2.6.16-r3 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /initramfs-genkernel-x86-2.6.16-gentoo-r3


I'm just comparing my own grub.conf (made by the installer) to the one in the documentations, and it seems fishy.
The udev might be unnecassary as well.
I hope you can get it to work, though.
Back to top
View user's profile Send private message
redo_fr
n00b
n00b


Joined: 15 Nov 2005
Posts: 20
Location: Toulouse(France)

PostPosted: Fri May 12, 2006 11:47 am    Post subject: Reply with quote

ganzor,
look at this topic: https://forums.gentoo.org/viewtopic-t-122656-highlight-grub.html

Quote:

After upgrading grub you only get a grub prompt?
Did you upgrade to grub 0.96?
If so make sure that you still have a symlink in /grub pointing from grub to ./

Else make sure that your menu.lst link exists
Code:

cd /boot/grub
ln -s grub.conf menu.lst


and you executed

Code:

root (hd0,0)
setup (hd0)

in grub.
Check out bug https://bugs.gentoo.org/show_bug.cgi?id=39392

You may also want to try this tip provided by ibis:
ibis a écrit:
Try restoring the /boot/boot symlink
Code:

# cd /boot
# ln -s ./ boot

And then run grub-install again
Code:

# grub-install --root-directory=/boot /dev/hda


_________________
--
Redo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum