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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-27-2006, 09: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, 11: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, 11: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, 11:51 AM
|
#4
|
Member
Registered: Mar 2005
Location: Winnipeg, MB
Distribution: Raspbian, Debian, Slackware, OS X
Posts: 443
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, 12:04 PM
|
#5
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep:
|
In addition to your filesystem, make sure support for your IDE/SATA/SCSI controller is built into the kernel.
|
|
|
07-31-2006, 03: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.
|
|
|
All times are GMT -5. The time now is 09:07 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
|
|