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.
|
|
02-11-2006, 10:24 PM
|
#1
|
Member
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128
Rep:
|
Kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(3,2)
I am attempting to compile my own Linux 2.6.15-4 kernel on an IBM Thinkpad T23 laptop. I do not know what I am doing wrong. I am only using the ext2 filesystem. I am receiving this error message:
Code:
Kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(3,2)
Maybe I did not select an option that I should have. I made the required changes to /boot/grub/menu.lst. Here is my .config file: http://pastebin.com/550643
Last edited by Rhatlinux; 02-11-2006 at 10:36 PM.
|
|
|
02-11-2006, 11:02 PM
|
#2
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
It looks like you don't have any filesystems but ext2 configured. You need to compile support for your root filesystem into te kernel (or as a module and then load it via an initrd -- see mkinitrd for more details).
|
|
|
02-11-2006, 11:26 PM
|
#3
|
Member
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128
Original Poster
Rep:
|
I am using ext2 for my root filesystem.
|
|
|
02-12-2006, 05:26 AM
|
#4
|
Senior Member
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358
Rep:
|
Quote:
I am using ext2 for my root filesystem.
|
Yes, we got that. But are you sure you have compiled ext2 support in to the kernel and NOT as an module? Unless this module is available through an initrd file, you will get an kernel panic.
|
|
|
02-12-2006, 05:35 AM
|
#5
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Rep:
|
So, recompile your kernel (just make menuconfig) and check you have compiled support for all the file systems you are using.
<M> in front of an option means that it is "Modularized".
So make sure that you have a <*> in front of the option for File Systems.
|
|
|
02-12-2006, 07:25 AM
|
#6
|
Member
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128
Original Poster
Rep:
|
Code:
#
#
#
# File systems
#
#
#
CONFIG_EXT2_FS=y
#
CONFIG_EXT2_FS_XATTR=y
#
CONFIG_EXT2_FS_POSIX_ACL=y
#
CONFIG_EXT2_FS_SECURITY=y
#
# CONFIG_EXT2_FS_XIP is not set
#
# CONFIG_EXT3_FS is not set
#
# CONFIG_JBD is not set
#
CONFIG_FS_MBCACHE=y
#
# CONFIG_REISERFS_FS is not set
#
# CONFIG_JFS_FS is not set
#
CONFIG_FS_POSIX_ACL=y
#
# CONFIG_XFS_FS is not set
#
# CONFIG_MINIX_FS is not set
#
# CONFIG_ROMFS_FS is not set
#
CONFIG_INOTIFY=y
#
CONFIG_QUOTA=y
#
CONFIG_QFMT_V1=m
#
CONFIG_QFMT_V2=m
#
CONFIG_QUOTACTL=y
#
CONFIG_DNOTIFY=y
#
# CONFIG_AUTOFS_FS is not set
#
CONFIG_AUTOFS4_FS=y
#
CONFIG_FUSE_FS=m
The ext2 is set to be built-in to the kernel.
|
|
|
02-12-2006, 10:48 AM
|
#7
|
Member
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128
Original Poster
Rep:
|
I put a * for every option in the filesystem section and recompiled my kernel. I am still receiving a kernel panic.
|
|
|
02-13-2006, 01:04 AM
|
#8
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Rep:
|
Did you copy over the new kernel to your boot directory?
If you haven't done it, you are still booting from your old kernel.
|
|
|
02-13-2006, 06:40 AM
|
#9
|
LQ Newbie
Registered: Feb 2006
Posts: 4
Rep:
|
Maybe your kernel looks for root partition in wrong place? Have you tried to pass "root=/dev/hd**" option to kernel at boot?
|
|
|
02-13-2006, 01:21 PM
|
#10
|
Member
Registered: Jun 2004
Location: israel
Distribution: When I started here: mandrake, MEPIS and menny live-cds Now: Ubuntu mostly
Posts: 72
Rep:
|
while i was setting up a RAID array i found out that after kernel 2.6.12 you must use mkinitramfs and not mkinitrd. otherwise you get kernel panic.
|
|
|
02-13-2006, 05:44 PM
|
#11
|
LQ Newbie
Registered: Feb 2006
Posts: 4
Rep:
|
I think I have figured out what can cause this. There may be two reasons:
1. You haven't turned on support for IDE in your kernel.
or
2. You haven't selected Dos MBR support under File Systems->Partiton Types->Advance Partition selection (I don't remeber exact name of option).
I've had similar problem with 2.6.15.3 kernel and selecting these options to compile into kernel solved it.
Last edited by Milesss; 02-13-2006 at 05:48 PM.
|
|
|
02-14-2006, 10:53 AM
|
#12
|
Member
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128
Original Poster
Rep:
|
Quote:
I think I have figured out what can cause this. There may be two reasons:
1. You haven't turned on support for IDE in your kernel.
or
2. You haven't selected Dos MBR support under File Systems->Partiton Types->Advance Partition selection (I don't remeber exact name of option).
I've had similar problem with 2.6.15.3 kernel and selecting these options to compile into kernel solved it.
|
I compiled the kernel about 10 times since I posted. You were absolutely right. I had IDE support complied, but I did not have an option compiled that was related to ATA2. Then I could not enable DMA using "hdparm -d1 /dev/hda." I needed to enable the "Pentium IIX IDE chipset support" for DMA to work. I also enabled the "Use DMA when avaliable" so I did not have to manually enable it using hdparm. I did not have to enable anything under "Partition Types."
|
|
|
02-14-2006, 11:04 AM
|
#13
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Rep:
|
Knowing your computer inside out is the most important consideration required for *successful* Kernel Compilations.
|
|
|
All times are GMT -5. The time now is 11:17 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
|
|