Kernel panic - not syncing: VFS: Unable to mount root fs on unkown-block(3,2)
Linux - GeneralThis 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.
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 11:36 PM..
Distribution: At home: Kubuntu, Slackware, *BSD, Solaris. At work: Red Hat, CentOS, Debian, Fedora, Irix, HPUX
Posts: 3,341
Thanked: 8
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).
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358
Thanked: 0
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.
#
#
#
# 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
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 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."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.