View previous topic :: View next topic |
Author |
Message |
ugg n00b
Joined: 30 Oct 2002 Posts: 20
|
Posted: Wed Oct 30, 2002 3:32 pm Post subject: A grubby problem! |
|
|
Having a slight problem with grub now. It's not finding the kernel on boot but if I type kernel /bzImage it finds the kernel, but then if I type boot it starts up but then says "kernel panic: cannot boot root filesystem". This is very frustrating for a n00b like me so can anyone be of some assistance?
My grub.conf is
Code: | default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=gentoo
root (hd0,0)
kernel /bzimage root=/dev/hda4
|
My / partition is hda4, and the /boot partition is hda1
Thanks |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Wed Oct 30, 2002 3:41 pm Post subject: |
|
|
Code Listing 16.12 in the Installation Guide should answer your questions.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
ugg n00b
Joined: 30 Oct 2002 Posts: 20
|
Posted: Wed Oct 30, 2002 3:46 pm Post subject: |
|
|
Tried it as per the install guides first but that didn't work, then someone else recommended to do it as above, but that doesn't worth either . |
|
Back to top |
|
|
s003apr Apprentice
Joined: 04 Oct 2002 Posts: 162
|
Posted: Wed Oct 30, 2002 3:49 pm Post subject: |
|
|
Don't see why yours doesn't work, but just for kicks, consider trying the example setup from the install guide (ie. has /boot/grub instead of /grub and /boot/bzImage instead of /bzImage)
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=My example Gentoo Linux
root (hd0,0)
kernel /boot/bzImage root=/dev/hda3
I also notieced that you have "/bzimage" and not "/bzImage" assuming grub is case sensitive the capital "i" could make a difference.
Those are the only suggestions I have that you can try, sorry. Your problem sounds strange though because it says it found the kernel, if these things really mattered I don't think it would find the kernel at all. |
|
Back to top |
|
|
ugg n00b
Joined: 30 Oct 2002 Posts: 20
|
Posted: Wed Oct 30, 2002 3:52 pm Post subject: |
|
|
Thanks but already tried the ones from the install guide, and as for the lower case thing it's just because I typed it out quickly into the post, it's fine the the actual file. |
|
Back to top |
|
|
chatgris Guru
Joined: 14 Oct 2002 Posts: 383 Location: Canada
|
Posted: Wed Oct 30, 2002 3:54 pm Post subject: |
|
|
try manually booting with
kernel /bzimage root=/dev/hda4
then boot
that should get you into gentoo...
I had that same problem =) turned out i hadn't linked menu.lst to /boot/grub... |
|
Back to top |
|
|
s003apr Apprentice
Joined: 04 Oct 2002 Posts: 162
|
Posted: Wed Oct 30, 2002 3:59 pm Post subject: |
|
|
I looked into this and can't even find an error like this in the grub documentation. In fact, I'm not sure this is a grub problem.
You don't have a working boot floppy do you? I assume not.
Do you have any OS other than Gentoo on this comp that you can check to see if they boot? |
|
Back to top |
|
|
ugg n00b
Joined: 30 Oct 2002 Posts: 20
|
Posted: Wed Oct 30, 2002 4:09 pm Post subject: |
|
|
chatgris wrote: | try manually booting with
kernel /bzimage root=/dev/hda4
then boot
that should get you into gentoo...
I had that same problem =) turned out i hadn't linked menu.lst to /boot/grub... |
Still same problem. |
|
Back to top |
|
|
ugg n00b
Joined: 30 Oct 2002 Posts: 20
|
Posted: Wed Oct 30, 2002 4:11 pm Post subject: |
|
|
s003apr wrote: | I looked into this and can't even find an error like this in the grub documentation. In fact, I'm not sure this is a grub problem.
You don't have a working boot floppy do you? I assume not.
Do you have any OS other than Gentoo on this comp that you can check to see if they boot? |
I don't have a boot floppy or any other OS unfortunately.
You think maybe I should just give up on this and do a complete reinstall? I'm reluctant to as I'm on 56k, but will if necessary. |
|
Back to top |
|
|
ugg n00b
Joined: 30 Oct 2002 Posts: 20
|
Posted: Wed Oct 30, 2002 4:39 pm Post subject: |
|
|
If it helps, the exact error was
Kernel Panic:: VFS: Unable to mount root fs on 03:04 |
|
Back to top |
|
|
s003apr Apprentice
Joined: 04 Oct 2002 Posts: 162
|
Posted: Wed Oct 30, 2002 5:53 pm Post subject: |
|
|
You might be able to avoid redoing everything. In fact, if you had started with a stage 2 or stage 3 and already have the tarball, you won't really have to download anything much.
Also I've never done this, but if bzImage is a bad kernel image you might just be able to make a new one (not sure, i might just be talking out my [ear]).
Also, I don't know if filesystem type can mess up Grub, but you might want to look into it (I know ext2 and ext3 work, but that's all i use).
OH, also look the error up on a search engine:
I found this link, maybe give this a try:
http://www.linuxchimp.com/stories.php?story=303 |
|
Back to top |
|
|
s003apr Apprentice
Joined: 04 Oct 2002 Posts: 162
|
|
Back to top |
|
|
Gav n00b
Joined: 10 Oct 2002 Posts: 65 Location: Surrey, UK
|
Posted: Wed Oct 30, 2002 8:01 pm Post subject: |
|
|
I have the same problem, well almost - I'm using a SCSI drive.
My root is sda6 and ext2 format yet I get the same Kernel Panic but with 08:06, even with the "linux mem=128M" addition
Do you think I may have somehow managed to not have ext2 support (perhaps as a module) in my Kernel? I've built the system from stage1, and it takes a few days - If I can't get this Gentoo install working (my 2nd attempt) then I'll be going back to Red Hat (well, perhaps try lilo first). |
|
Back to top |
|
|
Gav n00b
Joined: 10 Oct 2002 Posts: 65 Location: Surrey, UK
|
Posted: Wed Oct 30, 2002 11:12 pm Post subject: |
|
|
A little thinking solved it. My last problem was indeed kernel related - I managed to forget to put in support for my SCSI chip - now it works!!
Next I have to learn more about gentoo and install all the server software I need... |
|
Back to top |
|
|
SkuTheSnake n00b
Joined: 23 Jun 2002 Posts: 6
|
Posted: Thu Oct 31, 2002 7:38 am Post subject: hi |
|
|
i have the same problem like ugg
-> if you make a link like described in the manual there is a symbolic link
between grub.conf and menu.lst you must boot manual , dont know why
if you make a normal link ln /... without the -s you get your old splashscreen back try it and dont forget to mount your boot partition to boot if you make any changes
SkuTheSnake |
|
Back to top |
|
|
ugg n00b
Joined: 30 Oct 2002 Posts: 20
|
Posted: Thu Oct 31, 2002 4:20 pm Post subject: |
|
|
In the end I used ftp to transfer my files off of the drive, then zero'd the drive and reinstalled gentoo. Booted first time! Only problem is a distinct lack of network, but that's just due to my rushing things so should be fixed soon.
Thanks for all your help! |
|
Back to top |
|
|
|