Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-27-2006, 09:58 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 7

Rep: Reputation: 0
compiling kernel problem --- Kernel panic: unable to mount root fs ........

Dear all,

Now, My FC5 originally use 2.6.15-1 kernel, after i compile it to OR from the source of, it shows the problem in the following after reboot.

kernel panic - no syncing: VFS: Unable to mount root fs on unknown-block (3, 2)

Can anyone tell me the reason which causing this problem? How can I solve it?

Thank you
Old 07-27-2006, 11:35 AM   #2
Registered: Jul 2001
Location: Moody, AL
Distribution: Debian and Kubuntu
Posts: 249

Rep: Reputation: 30
Sounds like your bootloader has the wrong root fs set in it. You using grub? Make sure your /boot/grub/menu.lst file's entry for your new kernel looks like your old one on everything but the kernel name.
Old 07-27-2006, 11:39 AM   #3
Registered: Feb 2006
Location: Sikkim Manipal Institute of Technology, Sikkim
Distribution: Slackware 10.2
Posts: 80

Rep: Reputation: 15
i guess the problem is with the newer kernel as the older version was running fine so there are less chances of getting something wrong with the bootloader. Quite possibly you may have missed out or compiled the support for your filesystem as a module instead of built in!! check that!! Mos t likely it should solve your problem.
Old 07-27-2006, 11:51 AM   #4
Registered: Mar 2005
Location: Winnipeg, MB
Distribution: Raspbian, Debian, Slackware, OS X
Posts: 443
Blog Entries: 9

Rep: Reputation: 32
If you accidentally built your Filesystem as a module you could also make an initrd (initial ramdisk)rather than re-compile your kernel. If FC5 has mkinitrd, try 'man mkinitrd'. essentially, it will load your filesystem module before it trys to mound your root partiton.
Old 07-27-2006, 12:04 PM   #5
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
In addition to your filesystem, make sure support for your IDE/SATA/SCSI controller is built into the kernel.
Old 07-31-2006, 03:29 AM   #6
LQ Newbie
Registered: Jul 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you very much.
The method of mkinitrd is work.

First, I go to the folder "/lib/modules"
type "initrd <img name> <folder name>"
and then move the <img file> to /boot and add the initrd file to the /boot/grub/menu.lst
last steps, i can reboot to my new kernel.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic : Unable to mount root fs on 08:08 kiasen Linux - Enterprise 2 07-27-2006 05:48 AM
Kernel Panic! Unable to mount root fs... DarkNebula Linux - General 7 10-24-2004 07:38 PM
Kernel Panic, unable mount root fs ShadowLeo Debian 3 06-03-2004 02:03 PM
2.2 --> 2.65: Kernel panic, unable to mount root. gaea Debian 5 04-28-2004 02:10 PM
Unable to mount root fs -- Kernel panic tijs Linux - Newbie 6 02-07-2004 06:55 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:55 PM.

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