View previous topic :: View next topic |
Author |
Message |
holocene n00b
Joined: 24 Jan 2011 Posts: 8
|
Posted: Tue Jan 25, 2011 9:37 am Post subject: kernel panic |
|
|
Greetings Gentoo gurus,
I am a new Gentoo user, and I have followed the amd64 handbook exactly AFAIK.
I am getting a kernel panic with this text:
VFS: Cannot open root device "(null)" or unknown-block(8,3)
Please append a correct "root=" boot option...
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3)
pid: 1, comm: swapper Not tainted 2.6.36-gentoo-r5 #4
On a previous install attempt, I noticed a compile error (can't create bzImage) about lzma, so I did a emerge lzma-utils, which resulted in a compile with no lzma error this time.
Compile did complete with only warnings. No error at the end.
to the best of my understanding, the SATA drivers installed NOT as module (as per the generic config file, that is NOT from genkernel)
any ideas appreciated.
Steve.
My environment:
machine is amd64 dual processor
working from http://distfiles.gentoo.org/releases/amd64/autobuilds/current-iso/install-amd64-minimal-20110113.iso
stage: http://gentoo.mirrors.easynews.com/linux/gentoo/releases/amd64/autobuilds/20110120/stage3-amd64-20110120.tar.bz2
kernel source: gentoo-sources
kernel config: no changes made to config
compilation method: make && make modules_install
SATA drive: 1 only (sda1 boot sda2 swap sda3 /) just like handbook examples
grub installed to mbr using grub-install (hd0,0) just like handbook examples |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Jan 25, 2011 2:05 pm Post subject: |
|
|
boot the cd, mount the gentoo partitions, run Code: | lspci -k
mount
ls -l /mnt/gentoo/boot
cat /mnt/gentoo/boot/grub/grub.conf
cat /mnt/gentoo/etc/fstab
grep -i deprecated /mnt/gentoo/usr/src/linux/.config | post the results. if your cd will not run the -k option, lspci will do
is your kernel manual or genkernel? _________________ Defund the FCC. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Tue Jan 25, 2011 2:09 pm Post subject: |
|
|
Quote: | Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3) |
According this message kernel is accessing sda3 which is correct. Meaning your SATA driver is working. Since your kernel still can't read sda3 I assume you missed root filesystem support in your kernel or built it as module. Support for root filesystem must be built in, not as module. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
GES Tux's lil' helper
Joined: 12 Jun 2005 Posts: 108 Location: Budapest, Hungary
|
Posted: Tue Jan 25, 2011 2:49 pm Post subject: Re: kernel panic |
|
|
holocene wrote: |
I am a new Gentoo user,
as per the generic config file, that is NOT from genkernel)
|
Use the install cd kernel config with genkernel until you can not compile the normally kernel. |
|
Back to top |
|
|
holocene n00b
Joined: 24 Jan 2011 Posts: 8
|
Posted: Tue Jan 25, 2011 5:51 pm Post subject: |
|
|
DONAHUE wrote: | boot the cd, mount the gentoo partitions, run Code: | lspci -k
mount
ls -l /mnt/gentoo/boot
cat /mnt/gentoo/boot/grub/grub.conf
cat /mnt/gentoo/etc/fstab
grep -i deprecated /mnt/gentoo/usr/src/linux/.config | post the results. if your cd will not run the -k option, lspci will do
is your kernel manual or genkernel? |
I built my kernel manually but with no changes, since I could not really see any essential changes to make.
I will post the file you indicate shortly.
Thanks. |
|
Back to top |
|
|
holocene n00b
Joined: 24 Jan 2011 Posts: 8
|
Posted: Tue Jan 25, 2011 5:54 pm Post subject: |
|
|
Jaglover wrote: | Quote: | Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3) |
According this message kernel is accessing sda3 which is correct. Meaning your SATA driver is working. Since your kernel still can't read sda3 I assume you missed root filesystem support in your kernel or built it as module. Support for root filesystem must be built in, not as module. |
I am confused about the above.
Seems like you indicate that sda3 can be read, but then it can't.
Sorry if I should understand this but i am new.
Thanks.
Steve. |
|
Back to top |
|
|
holocene n00b
Joined: 24 Jan 2011 Posts: 8
|
Posted: Tue Jan 25, 2011 6:19 pm Post subject: Re: kernel panic |
|
|
GES wrote: | holocene wrote: |
I am a new Gentoo user,
as per the generic config file, that is NOT from genkernel)
|
Use the install cd kernel config with genkernel until you can not compile the normally kernel. |
I believe i tried that on one of my many attempts, but I believe it was blocked because of the lzma issue I mention above.
i will revisit.
thanks |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Tue Jan 25, 2011 6:52 pm Post subject: |
|
|
holocene,
There are degrees of 'read'. The kernel can find the drive and read raw disk blocks but it cannot make any sense of what it reads.
That requires the file system driver. Without that, the kernel cannot find any files on the drive.
Follow this guide
Actually, its a part made kernel config file with instructions for completing it to suit your hardware. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
holocene n00b
Joined: 24 Jan 2011 Posts: 8
|
Posted: Tue Jan 25, 2011 7:45 pm Post subject: |
|
|
NeddySeagoon wrote: | holocene,
There are degrees of 'read'. The kernel can find the drive and read raw disk blocks but it cannot make any sense of what it reads.
That requires the file system driver. Without that, the kernel cannot find any files on the drive.
Follow this guide
Actually, its a part made kernel config file with instructions for completing it to suit your hardware. |
Neddy,
I had glanced at the seeds site, but will spend more time on it.
I take it that the problem is likely the file system driver is a module and not compiled in? If so, it strikes me that the basic non-genkernel .config file has those key, common drivers as modules instead as compiled in.
Is it the initial ram disk or the built kernel we are talking about here?
I could swear that when I follow the handbook, I get a compile error that bzImage can not be created, because of a lzma error. Have you heard of that? How do I work around that? That was with both the genkernel and non-genkernel route.
Have a good day
Steve. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Tue Jan 25, 2011 10:16 pm Post subject: |
|
|
holocene,
A initrd is a temporary root filesystem, loaded into RAM by the boot loader that the kernel looks for at /dev/ram0
You need initrd support in the kernel for this.
The kernel runs a script to do whatever is needed, using this initrd to get the system in a state where it can mount the real root file system.
As no file system drivers are needed, kernel modules can be loaded from the initrd. You just need a script to tell what has to be done and in what order.
genkernel makes a fully modular kernel and an initrd so in theory it all just works. If you deviate from the handbook, genkernel may welll need a bit of help.
When you do not use an initrd, kernel modules are stored on disk, in the root filesystem. Its a bit difficult to load a module from disk, when you need the module you are trying to load to read the disk.
Thus when you choose not to use an initrd, everything needed to boot must be built into the kernel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
holocene n00b
Joined: 24 Jan 2011 Posts: 8
|
Posted: Wed Jan 26, 2011 4:51 am Post subject: Hurrah! genkernel worked! |
|
|
The genkernel compile completed ok, installed grub, rebooted, choose my kernel from the menu, and it freaking WORKED!!
I think that when I tried the genkernel method previously, I might have used the grub from the non-genkernel.
I am going to back my system up using clonezilla so I have a good reference point to fall back to.
After that, I want to learn to compile the kernel "the right way". No genkernel.
I know I should keep my working kernel intact as a fall back, so my grub should have an entry pointing to it.
I assume that when I compile a new trial kernel, that will become another entry in grub.
If this is incorrect, please let me know.
Thanks to all for your patience. |
|
Back to top |
|
|
holocene n00b
Joined: 24 Jan 2011 Posts: 8
|
Posted: Wed Jan 26, 2011 8:18 am Post subject: Kernel builds for the newbie |
|
|
Update on my progress:
I was able to compile a custom kernel that would boot on my machine.
Previously, the custom kernel would fail with a VFS error.
These are the changes to the stock .config file(each changed from M to *):
* turned on gzip kernel compression (was lzma but lzma is not present in a new vanilla install)
* AHCI SATA
* ATI PATA SUPPORT
*GENERIC PLATFORM DEVICE PATA SUPPORT
*GENERIC ATA SUPPORT
Question:
I did not emerge gentoo-sources after the prior kernel build. Instead, I just make menuconfig again. Is this the right way to do it?
Thanks to all.
Steve. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
holocene n00b
Joined: 24 Jan 2011 Posts: 8
|
Posted: Wed Jan 26, 2011 9:38 pm Post subject: |
|
|
Jag,
Thanks for the info. Visited the links on your sig and read them. Very helpful.
Gentoo is the most fun I have had in Linux ever.
Steve. |
|
Back to top |
|
|
|