LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-27-2006, 08:58 AM   #1
anthonymts123
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 2.6.16.1 OR 2.6.16.2 from the source of kernel.org, 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, 10:35 AM   #2
AzrielMacKay
Member
 
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, 10:39 AM   #3
lockpicker
Member
 
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, 10:51 AM   #4
truthfatal
Member
 
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, 11:04 AM   #5
Matir
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, 02:29 AM   #6
anthonymts123
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.
 
  


Reply



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 04:48 AM
Kernel Panic! Unable to mount root fs... DarkNebula Linux - General 7 10-24-2004 06:38 PM
Kernel Panic, unable mount root fs ShadowLeo Debian 3 06-03-2004 01:03 PM
2.2 --> 2.65: Kernel panic, unable to mount root. gaea Debian 5 04-28-2004 01:10 PM
Unable to mount root fs -- Kernel panic tijs Linux - Newbie 6 02-07-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:07 AM.

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
Open Source Consulting | Domain Registration