View previous topic :: View next topic |
Author |
Message |
Virum n00b
Joined: 01 Feb 2004 Posts: 44
|
Posted: Wed Feb 18, 2004 5:51 pm Post subject: Grub: Error 8 (bad config?) |
|
|
I installed Gentoo on a friend's computer.
After the install I restarted the computer like the install guide told me too. Instead up gentoo it brought up the grub prompt and when I typed boot to boot system it gave thsi error:
Error 8: Kernel must be loaded before booting.
I tired quit to exit grub to get to the Linux prompt, but I guess that didn't work because I don't have a kernel loaded (I guess I have to change the grub configuration file with the livecd?)
Anyway, what I think the problem is is that I specified the worng kernel in the grub config (such as:
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.4.22
root (hd0,0)
kernel (hd0,0)/kernel-2.4.22 root=/dev/ram0 init=/linuxrc real_root=/dev/hda3
initrd (hd0,0)/initrd-2.4.22 <-- I think this kernel number and the one above is wrong.
)
So that brings me to the question. How do I fix my mistake? _________________ Maya. Java. Linux.
Power. |
|
Back to top |
|
|
kojiro Apprentice
Joined: 20 Nov 2003 Posts: 245 Location: Rochester
|
Posted: Wed Feb 18, 2004 6:11 pm Post subject: Re: Grub: Error 8 (bad config?) |
|
|
It looks like you used genkernel. Did you?
Boot with the LiveCD and mount your boot directory at, say, /mnt/gentoo/boot. (If you're not changing anything else, you don't have to chroot or mount the other drives.)
I don't use genkernel, so I can't advise you on it, but if you look in /boot, you should see the kernel image that you need, and the initrd filename. Those should match what's in /boot/grub/grub.conf .
Change one or the other to match, but preferably change grub.conf.
Save it, unmount, and reboot. _________________ >>> Also, customizing emacs can be an exercise in black magic.
>> It's not black magic, it's Lisp.
>There is a difference?
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list |
|
Back to top |
|
|
michaelb l33t
Joined: 06 Jun 2002 Posts: 686 Location: Ann Arbor, MI
|
Posted: Wed Feb 18, 2004 6:36 pm Post subject: |
|
|
you can actually fix this without using the liveCD. From the grub menu you can press 'c' to get to a grub command prompt. Use tab completion to enter Code: | grub> kernel (hd0,0)<tab> | And you will see a list of options. Pick the kernel image from there, and then type boot. Once inside the system, you can mount /boot and modfiy grub.conf to your needs. _________________ Behold, The power of SEARCH! |
|
Back to top |
|
|
kojiro Apprentice
Joined: 20 Nov 2003 Posts: 245 Location: Rochester
|
Posted: Wed Feb 18, 2004 6:38 pm Post subject: |
|
|
michaelb wrote: | you can actually fix this without using the liveCD. ... |
This is true... which begs the question, why didn't grub go back to the grub boot screen when it couldn't find the files? or did it? _________________ >>> Also, customizing emacs can be an exercise in black magic.
>> It's not black magic, it's Lisp.
>There is a difference?
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list |
|
Back to top |
|
|
michaelb l33t
Joined: 06 Jun 2002 Posts: 686 Location: Ann Arbor, MI
|
Posted: Wed Feb 18, 2004 6:40 pm Post subject: |
|
|
From his post, it looks like he typed boot from the command prompt without picking a valid kernel image. That's what caused the error. _________________ Behold, The power of SEARCH! |
|
Back to top |
|
|
Virum n00b
Joined: 01 Feb 2004 Posts: 44
|
Posted: Wed Feb 18, 2004 7:30 pm Post subject: |
|
|
Alright, I've got the install showing up in grub!
However:
kernel (hd0,0)/kernel-2.4.22 root=/dev/ram0 init=/linuxrc real_root=/dev/hda6
Error 15: File not found. Press any key to continue. _________________ Maya. Java. Linux.
Power. |
|
Back to top |
|
|
kojiro Apprentice
Joined: 20 Nov 2003 Posts: 245 Location: Rochester
|
Posted: Wed Feb 18, 2004 7:34 pm Post subject: |
|
|
Virum wrote: | kernel (hd0,0)/kernel-2.4.22 root=/dev/ram0 init=/linuxrc real_root=/dev/hda6 |
Here is a haiku in response:
Genkernel is hard
Manual config is not
Why torture yourself? _________________ >>> Also, customizing emacs can be an exercise in black magic.
>> It's not black magic, it's Lisp.
>There is a difference?
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list |
|
Back to top |
|
|
michaelb l33t
Joined: 06 Jun 2002 Posts: 686 Location: Ann Arbor, MI
|
Posted: Wed Feb 18, 2004 7:35 pm Post subject: |
|
|
Are you using tab completion from the grub command prompt? _________________ Behold, The power of SEARCH! |
|
Back to top |
|
|
michaelb l33t
Joined: 06 Jun 2002 Posts: 686 Location: Ann Arbor, MI
|
Posted: Wed Feb 18, 2004 7:36 pm Post subject: |
|
|
kojiro wrote: |
Genkernel is hard
Manual config is not
Why torture yourself? |
You freaking rule kojiro!! _________________ Behold, The power of SEARCH! |
|
Back to top |
|
|
Virum n00b
Joined: 01 Feb 2004 Posts: 44
|
Posted: Wed Feb 18, 2004 7:41 pm Post subject: |
|
|
kojiro wrote: | Virum wrote: | kernel (hd0,0)/kernel-2.4.22 root=/dev/ram0 init=/linuxrc real_root=/dev/hda6 |
Here is a haiku in response:
Genkernel is hard
Manual config is not
Why torture yourself? |
Can you say n00b?
Instead of critisizing me could you provide me with helpful tips?
Quote: |
Are you using tab completion from the grub command prompt?
|
I don't have the grub command prompt anymore. It goes straight to the screen where it says to make your selection.
And what is GRP? I think I'm a non-GRP genkernel. _________________ Maya. Java. Linux.
Power. |
|
Back to top |
|
|
michaelb l33t
Joined: 06 Jun 2002 Posts: 686 Location: Ann Arbor, MI
|
Posted: Wed Feb 18, 2004 7:49 pm Post subject: |
|
|
from there you can hit the 'c' key to get to a command prompt.
For the record, I don't think kojiro was critisizing you, but rather critisizing genkernel. I for one, agree with him on that. Genkernel is seriously broken. _________________ Behold, The power of SEARCH! |
|
Back to top |
|
|
kojiro Apprentice
Joined: 20 Nov 2003 Posts: 245 Location: Rochester
|
Posted: Wed Feb 18, 2004 7:51 pm Post subject: |
|
|
Virum wrote: | Instead of critisizing me could you provide me with helpful tips? |
I believe I did. In the Gentoo Install Guide you'll note that manual configuration of the kernel is the default. Genkernel is, I suspect, going the way of the dodo because Gentoo users use Gentoo because they like its configurability, and Genkernel reduces that benefit. And if you read my haiku, you'll understand the point that Genkernel has made your life a lot harder, because your grub.conf would be a whole lot simpler if you had done manual kernel configuration.
The reason I use haiku is because it's short, simple, and *usually* gets my point across much less verbosely and sesquipedalian-ly than when I write prose.
My suggestion is that you go back and use the manual kernel configuration, so that you'll know beyond a doubt which files to place in grub.conf, and you'll be able to get rid of initrd, and real_root, which together obscure the real kernel image.
Hope it helps. _________________ >>> Also, customizing emacs can be an exercise in black magic.
>> It's not black magic, it's Lisp.
>There is a difference?
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list |
|
Back to top |
|
|
Virum n00b
Joined: 01 Feb 2004 Posts: 44
|
Posted: Wed Feb 18, 2004 7:51 pm Post subject: |
|
|
My apologies kojiro.
So, if genkernel is so bad, is there a FAST way to get rid of it and redo the kernel with manual config? WIhtout having to spend hours unpackaging gnome and kde again? _________________ Maya. Java. Linux.
Power. |
|
Back to top |
|
|
kojiro Apprentice
Joined: 20 Nov 2003 Posts: 245 Location: Rochester
|
Posted: Wed Feb 18, 2004 7:54 pm Post subject: |
|
|
Virum wrote: | My apologies kojiro.
So, if genkernel is so bad, is there a FAST way to get rid of it and redo the kernel with manual config? WIhtout having to spend hours unpackaging gnome and kde again? |
You probably don't have to re-emerge much more than the kernel itself. Give it a try. _________________ >>> Also, customizing emacs can be an exercise in black magic.
>> It's not black magic, it's Lisp.
>There is a difference?
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list |
|
Back to top |
|
|
Virum n00b
Joined: 01 Feb 2004 Posts: 44
|
Posted: Wed Feb 18, 2004 7:55 pm Post subject: |
|
|
kojiro wrote: | Virum wrote: | Instead of critisizing me could you provide me with helpful tips? |
I believe I did. In the Gentoo Install Guide you'll note that manual configuration of the kernel is the default. Genkernel is, I suspect, going the way of the dodo because Gentoo users use Gentoo because they like its configurability, and Genkernel reduces that benefit. And if you read my haiku, you'll understand the point that Genkernel has made your life a lot harder, because your grub.conf would be a whole lot simpler if you had done manual kernel configuration.
The reason I use haiku is because it's short, simple, and *usually* gets my point across much less verbosely and sesquipedalian-ly than when I write prose.
My suggestion is that you go back and use the manual kernel configuration, so that you'll know beyond a doubt which files to place in grub.conf, and you'll be able to get rid of initrd, and real_root, which together obscure the real kernel image.
Hope it helps. |
I'm sorry. I'm kind of wound up tight. I've been working on this for about 8 hours.
I see. I guess I misread the manual. I thought it said manual kernel was for advanced users, which I am NOT. (Just in case you didn't notice).
So to emerge my kernel do I type emerge --usepkg gentoo-sources? _________________ Maya. Java. Linux.
Power.
Last edited by Virum on Wed Feb 18, 2004 7:58 pm; edited 1 time in total |
|
Back to top |
|
|
michaelb l33t
Joined: 06 Jun 2002 Posts: 686 Location: Ann Arbor, MI
|
Posted: Wed Feb 18, 2004 7:58 pm Post subject: |
|
|
You've already emerged the kernel sources, you don't need to do it again. All you need to do is follow the install doc section on compiling your own. Post here with any particular questions or snags you hit along the way. _________________ Behold, The power of SEARCH! |
|
Back to top |
|
|
kojiro Apprentice
Joined: 20 Nov 2003 Posts: 245 Location: Rochester
|
Posted: Wed Feb 18, 2004 8:01 pm Post subject: |
|
|
Virum wrote: | So to emerge my kernel do I type emerge -k kernel? |
erm... will give you a list of all the different kernels gentoo has to offer. If you can't decide, use gentoo-sources...
Once you've picked one, type Code: | emerge whatever-sources | to get the actual kernel. I wouldn't bother with -k on the kernel install. It won't save you much time, and it's likely to get you an old kernel. _________________ >>> Also, customizing emacs can be an exercise in black magic.
>> It's not black magic, it's Lisp.
>There is a difference?
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list |
|
Back to top |
|
|
Virum n00b
Joined: 01 Feb 2004 Posts: 44
|
Posted: Wed Feb 18, 2004 8:01 pm Post subject: |
|
|
So running genkernel hasn't messedup anything?
Questions - heh. Looking through, I don't understand what half the stuff is. _________________ Maya. Java. Linux.
Power. |
|
Back to top |
|
|
Virum n00b
Joined: 01 Feb 2004 Posts: 44
|
Posted: Wed Feb 18, 2004 8:03 pm Post subject: |
|
|
kojiro wrote: | Virum wrote: | So to emerge my kernel do I type emerge -k kernel? |
erm... will give you a list of all the different kernels gentoo has to offer. If you can't decide, use gentoo-sources...
Once you've picked one, type Code: | emerge whatever-sources | to get the actual kernel. I wouldn't bother with -k on the kernel install. It won't save you much time, and it's likely to get you an old kernel. |
Looks like you caught me before my edit. So what does the -k do anyway? _________________ Maya. Java. Linux.
Power. |
|
Back to top |
|
|
kojiro Apprentice
Joined: 20 Nov 2003 Posts: 245 Location: Rochester
|
Posted: Wed Feb 18, 2004 8:03 pm Post subject: |
|
|
michaelb wrote: | You've already emerged the kernel sources... | Oh, so genkernel emerges the most UTD gentoo-sources? _________________ >>> Also, customizing emacs can be an exercise in black magic.
>> It's not black magic, it's Lisp.
>There is a difference?
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list |
|
Back to top |
|
|
kojiro Apprentice
Joined: 20 Nov 2003 Posts: 245 Location: Rochester
|
Posted: Wed Feb 18, 2004 8:04 pm Post subject: |
|
|
Virum wrote: | what does the -k do anyway? |
-k emerges binary packages. In the case of kernels, it's not much help, because the package just contains more source code _________________ >>> Also, customizing emacs can be an exercise in black magic.
>> It's not black magic, it's Lisp.
>There is a difference?
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list |
|
Back to top |
|
|
Virum n00b
Joined: 01 Feb 2004 Posts: 44
|
Posted: Wed Feb 18, 2004 8:05 pm Post subject: |
|
|
No, I think he means I already emerged the sources before running Genkernel. _________________ Maya. Java. Linux.
Power. |
|
Back to top |
|
|
michaelb l33t
Joined: 06 Jun 2002 Posts: 686 Location: Ann Arbor, MI
|
Posted: Wed Feb 18, 2004 8:06 pm Post subject: |
|
|
kojiro wrote: | Oh, so genkernel emerges the most UTD gentoo-sources? | No, genkernel just compiles whatever sources you've already emerged. It doesn't grab the sources for you. _________________ Behold, The power of SEARCH! |
|
Back to top |
|
|
michaelb l33t
Joined: 06 Jun 2002 Posts: 686 Location: Ann Arbor, MI
|
Posted: Wed Feb 18, 2004 8:15 pm Post subject: |
|
|
Virum wrote: | So running genkernel hasn't messedup anything?
Questions - heh. Looking through, I don't understand what half the stuff is. | No, you haven't broken anything. You can have as many compiled kernels as you want, and some folks (me for one) have two or three at any given time. All you've done is compiled a broken kernel, that happens to the best of us.
Follow the guide, make sure you put in the options it tells you are required, and read the online help (in menuconfig) for stuff you don't understand. It's only scary the first time. If it breaks, chalk it up to a learning experience and try again. By and large, setting up a Gentoo system is not for the faint of heart, nor the impatient. _________________ Behold, The power of SEARCH! |
|
Back to top |
|
|
Virum n00b
Joined: 01 Feb 2004 Posts: 44
|
Posted: Wed Feb 18, 2004 8:32 pm Post subject: |
|
|
Is there a way to get rid of the genkernel? _________________ Maya. Java. Linux.
Power. |
|
Back to top |
|
|
|