-   Fedora (
-   -   unable to mount VFS kernel panic, Boot failed. (

tushs 11-01-2010 05:41 AM

unable to mount VFS kernel panic, Boot failed.
I am trying to install linux kernel manually, for this I had compiled linux-2.6.36 with minimum drivers and features. Note that ext2, ext3, jffs file system support and sd ata_piix drivers are set as inbuilt kernel modules.
I had two hard disk for my Intel x86 box sda and sdb. I have running linux on sdb from which I can access sda. sda has one partition sda1 as ext3 fs.
I had created following directories at sda1 root,
bin, boot, etc, sbin
after compiling kernel, I had copied bzImage, system map files to boot folder. then using 'grub-install' I had installed grub on sda. after installation I edited grub.conf to setup kernel image.

title Mylinux
root (hd0,0)
kernel /boot/bzImage-2.6.36 root=/dev/sda1 ro

after this I booted sda by changing HDD boot priorities,And wow I got grub prompt -- linux kernel booted but as soon as it tries to mount file system it dies with error,

kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
I accept that I dont have binaries for init and no initialization stuff in /etc, but I think problem is I am not able to give correct rootfs to kernel.
I googled about that but I am not getting concepts of ramfs initrd..
if anyone knows how to configure rootfs and what can be possible reason of above error please help me.

estabroo 11-01-2010 06:03 AM

you need an initrd line to specify your initial ramdisk, it can't find that so you get the kernel panic. look at mkinitrd or mkinitramfs for the building of one

tushs 11-08-2010 02:45 AM

I found that we need ramfs in order to mount actual rootfs for linux 2.6.* kernel. rootfs needs some basic directory structure and files with valid contents. I am searching for information about basic rootfs and all files with valid contents or entries used in linux. Please give any link or information which describes all this in details and which I can experiment with my x86 linux box. being more specific I need info about /dev and /etc directories contents, init dependencies.

estabroo 11-09-2010 05:59 AM

Take a look busybox it can fill all the needs of the basic directory structure and files as well as being init itself.

The only other things you need are the basic devices (look at MAKEDEV) and probably an /etc/passwd (/etc/shadow) /etc/group files and an /etc/inittab (but busybox style)

All times are GMT -5. The time now is 08:50 PM.