Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"genkernel all" kernel panic
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
teepark
n00b
n00b


Joined: 23 Apr 2006
Posts: 22

PostPosted: Sun Apr 23, 2006 4:51 pm    Post subject: "genkernel all" kernel panic Reply with quote

I'm installing gentoo for the first time and when I started having problems with my first kernel attempt I went back and just did genkernel all. Now when I boot up linux I get the error message "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)". What is going wrong?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Sun Apr 23, 2006 5:09 pm    Post subject: Reply with quote

teepark,

Welcome to Gentoo.

Your
Code:
unknown-block(1,0)
means there was a problem with your
Code:
root=/dev/ram0
on the kernel line in your grub.conf,
so your kernel didn't get started properly.
The contents of /dev/ram0 are provided by your initrd file, which should be loaded just after your kernel line in grub.conf like this
Code:
kernel /...  <loads kernel> ... root=/dev/ram0
initrd /... <loads inital RAM drive file>

Check your kernel line and initrd line ig grub.conf.

If your first kernel attempt was a manual build, you may have forgotten the initrd line that genkernel needs in grub.conf.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
teepark
n00b
n00b


Joined: 23 Apr 2006
Posts: 22

PostPosted: Mon Apr 24, 2006 3:08 am    Post subject: Reply with quote

Thanks for the help, I double checked my grub.conf and found a typo. So now I don't get that error message any more, instead I get an entirely different one: "Error 28: Selected item cannot fit into memory".

Here's my current grub.conf:
Code:
default 0
timeout 10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title=Windows XP Professional SP2
rootnoverify (hd0,0)
makeactive
chainloader +1

title=Gentoo Linux 2.6.15
root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-2.6.15-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda5 udev
initrd /boot/initramfs-genkernel-x86_64-2.6.15-gentoo-r5
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Mon Apr 24, 2006 8:45 am    Post subject: Reply with quote

teepark,

Your grub.conf looks ok. The udev at the end of the kerenl line is no longer required but thats not the issue.

Either your kernel file does not contain a kernel or your initrd file is bigger than 8Mb.
Can you post the output of
Code:
ls -l /mnt/gentoo/boot
from the liveCD, with both your root and boot mounted but from outside the chroot.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
teepark
n00b
n00b


Joined: 23 Apr 2006
Posts: 22

PostPosted: Tue Apr 25, 2006 12:25 am    Post subject: Reply with quote

This is not exactly the output of ls -l, but this is what's in that location:

Code:
grub                                                   folder
lost+found                                             folder
Recycled                                               folder
.keep                                                  0kb
2.6.15-gentoo-r5                                       2,471kb
boot                                                   1kb
initramfs-genkernel-x86_64-2.6.15-gentoo-r5            1,546kb
kernel-genkernel-x86_64-2.6.15-gentoo-r5               2,190kb
System.map-genkernel-x86_64-2.6.15-gentoo-r5           1,048kb


The 2.6.15-gentoo-r5 is from my first failed attempt at building a kernel.

Thanks for helping me get started.
Back to top
View user's profile Send private message
troymc
Guru
Guru


Joined: 22 Mar 2006
Posts: 553

PostPosted: Tue Apr 25, 2006 9:08 am    Post subject: Re: "genkernel all" kernel panic Reply with quote

teepark wrote:
"Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)"


90% of the time, this messages means your kernel does not contain the drivers for your IDE controller.

"unknown-block" device is the clue - it does not understand what you told it your root device is.

I believe genkernel specifically has problems with SATA controllers.

It could also mean that you mistyped the real_root device on the kernel command line.
(ie. specifying /dev/sda1 when it's really a PATA IDE device.)



Just from what you've posted it looks like you are probably having SATA driver problems.

I'm not a genkernel expert, but I believe that there is a way to do a 'genkernel --menuconfig' or something so that you can go in and specifically enable your SATA drivers.


troymc
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Tue Apr 25, 2006 9:48 am    Post subject: Reply with quote

teepark,

In your grub.conf you said
Code:
kernel /boot/kernel-genkernel-x86_64-2.6.15-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda5 udev

That must be one very long line. Your file names and sizes in /boot look OK too.

Did you let genkerel configure your kernel or did you use --menuconfig and change some things yourself ?
It is possible that you turned off the ext2 file system, which is used in the initrd file, so the kernel cannot read it.

troymc,

If you read /usr/src/linux/Documentation/devices.txt and look up the block device with major number 1 and minor number 0
Code:
block(1,0)
you will see that its /dev/ram0 thats unkmown. The kernel has not got as far as looking around for hardware yet. The numbers in that error message are very useful for deteriming the cause.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
troymc
Guru
Guru


Joined: 22 Mar 2006
Posts: 553

PostPosted: Tue Apr 25, 2006 11:49 am    Post subject: Reply with quote

NeddySeagoon wrote:

If you read /usr/src/linux/Documentation/devices.txt and look up the block device with major number 1 and minor number 0
Code:
block(1,0)
you will see that its /dev/ram0 thats unkmown.


Ah, thank you, you are correct. I mis-read that as "block(0,0)".

This would seem like he doesn't have ramdisks or initrd enabled in his kernel.

NeddySeagoon wrote:

It is possible that you turned off the ext2 file system, which is used in the initrd file, so the kernel cannot read it.


Could an unknown filesystem give him an unknown block device error? Maybe a 0-length initrd file?

Or wouldn't that give him a "RAMDISK:" error?




troymc
Back to top
View user's profile Send private message
teepark
n00b
n00b


Joined: 23 Apr 2006
Posts: 22

PostPosted: Tue Apr 25, 2006 3:29 pm    Post subject: Reply with quote

No, when compiling the kernel I just used genkernel all. The documentation said that would give me the same kernel that was on the liveCD, so I thought that would be a good place to start, since I knew that would make the system run. Am I better off doing a manual compile and just repeatedly going back and recompiling when I miss something?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Tue Apr 25, 2006 4:31 pm    Post subject: Reply with quote

teepark,

I've never used genkernel, since I have been doing my own kernels from before I discovered gentoo.
This post tells about the pros and cons of buildiong your own kernel and gives some hight level hints.
This post gives more details about making your own kernel.
Then of course, there is the handbook.See 7c.

When you have your own kernel booting, you may add modules to it without a full rebuild.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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