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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
07-27-2006, 08:58 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2006
Posts: 7
Rep:
|
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
|
|
|
|
07-27-2006, 10:35 AM
|
#2
|
|
Member
Registered: Jul 2001
Location: Moody, AL
Distribution: Debian and Kubuntu
Posts: 249
Rep:
|
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.
|
|
|
|
07-27-2006, 10:39 AM
|
#3
|
|
Member
Registered: Feb 2006
Location: Sikkim Manipal Institute of Technology, Sikkim
Distribution: Slackware 10.2
Posts: 80
Rep:
|
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.
|
|
|
|
07-27-2006, 10:51 AM
|
#4
|
|
Member
Registered: Mar 2005
Location: Calgary AB
Distribution: Slackware
Posts: 440
Rep:
|
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.
|
|
|
|
07-27-2006, 11:04 AM
|
#5
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
In addition to your filesystem, make sure support for your IDE/SATA/SCSI controller is built into the kernel.
|
|
|
|
07-31-2006, 02:29 AM
|
#6
|
|
LQ Newbie
Registered: Jul 2006
Posts: 7
Original Poster
Rep:
|
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 |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:33 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|