Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As you see, now i use 2.6.30-rc8 kernel. I also tried 2.6.27.24, but.. I even tried to use .config files from the host (LFS LiveCD :P) but nothing helped.
default 0
timeout 4
color green/black light-green/black # i prefer these colours =)
title Linux 2.6.27.20-rc8 # linux entry
root (hd0,4)
kernel /boot/kernel-2.6.30-rc8 root=/dev/sda5 acpi=off # i have na acpi bug
title Windows XP # hmm.. windows :)
rootnoverify (hd0,0)
chainloader +1
I have a very similar problem after creating a new kernel. Installatione did not create an initrd file. (RAM disk file with device drivers etc).
Use mkinitrd against kernel and or put line in grub which points to the correct initrd file.
As you see, now i use 2.6.30-rc8 kernel. I also tried 2.6.27.24, but.. I even tried to use .config files from the host (LFS LiveCD :P) but nothing helped.
What saivin said is true. I too compiled LFS once and forgot to include SATA device drivers..
Try using the .config file from your linux ditribution's kernel source. Remember to change all '=m' to '=Y' in the config file if you are going for a static kernel compilation. I guess that's what they say for building LFS, right?
Last edited by sreeharsha.t; 06-16-2009 at 05:13 AM.
I've posted .config file Of cause, I've included SATA drivers, but there was no difference.
Now, I've soled this problem. But I don't know HOW =) First I used .config from host distribution and this helped. It had the same (!) SATA config. So, I recompiled with -oldconfig and changed .config file to enable them. And got kernel working!!! I don't understand this..)
This becomes more strange, because I removed some times kernel sources, and re-tared them.
p.s. sorry for my english, I know, hard to understand me =)
I've posted .config file Of cause, I've included SATA drivers, but there was no difference.
First I used .config from host distribution and this helped. It had the same (!) SATA config. So, I recompiled with -oldconfig and changed .config file to enable them. And got kernel working!!! I don't understand this..)
Many modules in the kernel are interdependent. If you include a module or driver which depends on another module/driver which is not included in the kernel then it simply won't work. I guess when you manually configured the .config file you would've missed out some of them. Using your distro's .config file will include all the modules your distro's kernel uses.. In most cases, if you distro's kernel works on your system, you new kernel too will work if you use the same .config file..
But they select dependent modules just after selection of them =) This is made automaticaly (perhaps, on the 2.6.27-2.6.30 kernels). So, problem is not here.
As I have said, kernel started working AFTER I mrproper-ed kernel sources, and reconfigured again. There was no host .config file after this!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.