LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-01-2010, 05:41 AM   #1
tushs
LQ Newbie
 
Registered: Apr 2010
Posts: 17

Rep: Reputation: 1
Lightbulb unable to mount VFS kernel panic, Boot failed.


Hello,
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.
grub.conf
Code:
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,
Code:
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.
 
Old 11-01-2010, 06:03 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,095
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
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
 
Old 11-08-2010, 02:45 AM   #3
tushs
LQ Newbie
 
Registered: Apr 2010
Posts: 17

Original Poster
Rep: Reputation: 1
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.
 
Old 11-09-2010, 05:59 AM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,095
Blog Entries: 2

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

http://www.busybox.net

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)
 
  


Reply

Tags
kernel panic, rootfs, vfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic: VFS: unable to mount root on 08:08, on first boot right after slack... nass Slackware 6 01-15-2007 04:01 PM
"Kernel panic: VFS: Unable to mount root fs" - Kernel fails to boot linux Freedom Seeker Linux - General 11 11-12-2006 08:48 PM
Kernel panic vfs unable to mount root thepinguin Slackware 4 03-08-2006 02:09 PM
Kernel Panic: Unable to mount VFS pafrica Slackware 21 01-26-2006 09:42 PM
kernel panic: VFS: unable to mount root fs on 09:02 x2000koh Linux - General 0 07-03-2002 04:16 AM


All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration