kernel panic
I just configured a kernel and installed it. The problem is when I try to boot into it I get the following message:
Code:
VFS: Cannot open root device "801" or unkown block (8,1): error -6 |
Possibly neither did you configure the file system for your root partition as built in nor did you include the module for it in an initrd (or didn't reference that initrd in /etc/lilo.conf).
|
I thought the same thing but checked that and it is configured. I'm using ext4
|
So boot your kernel appending the root directive
like kernel root=/dev/sda1 |
Where would I put this?
I have my lilo.conf as follows: Code:
image = /boot/vmlinuz |
Well, you could do it on lilo command line but if you can edit lilo.conf then you are in advantage, just find out what partition is your root typing
Code:
mount |
so you're saying use
Code:
kernel root=/dev/sda1 Code:
root = /dev/sda1 I'm not familiar with the "kernel root" command in lilo.conf |
I am going to say something silly but:
every time I have gotten this error it was because I forgot to run lilo after modifying lilo.conf john |
Good thinking alleyTrotter but I made sure I ran lilo more than once :)
|
Lilo
Hello @doughyi8u
I had a similar trouble some days ago, I solved that putting this: Code:
root = "UUID=uuid_of_your_root_partition" The uuid is obtained executing: Code:
blkid /dev/sdaX I hope this solve your problem! |
sgmart: I tried that and get the same result.
Like I said, I used the default kernel configuration for the 3.5 kernel and it boots that just fine. I made a lot of changes to the default .config and it won't boot with that. I thought for a while that it could be b/c I didn't configure any scsi devices and added those to the .config and re-ran make. I tried that config and get the same results. |
We need a little more information to help you.
1) What is your Slackware version? 2) What do you mean "by the default configuration for the 3.5 kernel"? 3) Did you download the kernel source from a kernel.org mirror? 4) Why do you need a 3.5 kernel? Does one of your hardware devices miss a driver in the provided Slackware kernels? 5) What is the purpose of the changes you made in the default .config? 6) How did you make these changes? To compile a kernel for Slackware, read this how-to from Alien Bob, one of the main Slackware contributors. Other than that, to help us investigate you could append to your next post two .config files (one with which you could make a booting kernel a one with which there was a problem), respectively renamed as goodconfig.txt and badconfig.txt. Also, outputs of "lspci -k" and "uname -a" would be useful. PS To investigate yourself, if you think you miss some driver, look at output of "lspci -k" and check in the "bad" .config that all drivers/modules listed are present in this configuration. Or check that with the "search" feature of your configuration command ("/" for make menuconfig, Ctrl+F for make xconfig). |
Maybe posting the .config will help.
|
Have you checked whether you have enabled the correct SATA/PATA drivers? I've had my kernels fail to boot for that reason.
|
2 Attachment(s)
I'm using Slackware 13.37
What I mean by default .config is the .config you get when you run make menuconfig (or make xconfig) and change nothing. When I compile that .config, it starts fine. I downloaded the kernel from www.kernel.org The config that works is attached as good_config.txt and the one I'm trying to compile that's giving me problems is config.txt. Here is the output from "lspci": Code:
00:00.0 Host bridge: Intel Corporation 82850 850 (Tehama) Chipset Host Bridge (MCH) (rev 02) |
All times are GMT -5. The time now is 12:20 PM. |