LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-19-2006, 10:56 PM   #1
tgo
Member
 
Registered: Dec 2004
Posts: 125

Rep: Reputation: 15
VFS kernel panic


The error about "Kernel Panic: VFS: unable to sync ... check your root= option" has been posted all over the board and everytime people's error was putting their fs in as a module. I have not put the ext3 things in as a module and I have given ide support but I still get this same error:

Quote:
kernel panic- not syncing :vfs: unable to mount root on unknown-block(3,2)
Also when after make is done it says its at (3,2) which is where its saying it cant find it.

Here is the ext3 and ide parts from my .config file

Quote:
root@darkstar:/usr/src/linux# grep -i ide .config | grep -v \#
CONFIG_ACPI_VIDEO=y
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_HD_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
root@darkstar:/usr/src/linux# grep -i ext3 .config
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
root@darkstar:/usr/src/linux#
I have compiled ext3 into the kernel along with everything related to ide yet I still get the error.

The part for the new kernel in my lilo.conf looks like:
Quote:
image = /boot/vmlinuz-2.6.16.6
root = /dev/hda2
label = 2.6.16.6
read-only
I run lilo and it updates fine.

So besides compiling your fs in as a module and besides screwing up your bootloader options what else can cause this error?
 
Old 05-20-2006, 06:21 AM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 799

Rep: Reputation: 256Reputation: 256Reputation: 256
I had this same error for months with my Pentium II machine, and it drove me absolutely nuts. Everytime I asked for help, I was told to compile in fs, other basic things, which I already did. So my P2 machine never switched to 2.6 for along time because I got this error and the kernels would never boot.

Once I was watching the boot messages scroll by on a working 2.4. I think it was a config from way back, a distro one back when I used Slackware that had everything but the kitchen sink compiled into it. To make a long story short(er), there's another IDE bus in there. Why I don't know, I didn't build this machine. I had supported the PIIX3 IDE, but there was still a PDC20246 in there that attached the actual disks. I have this as my root, which is not standard: /dev/hde1 Usually you'd expect /dev/hda1 or similar. Once I added another hard disk to the machine I got to see what they did when it was built, looks like this:

PIIX3: ide0, ide1, a ATAPI CD and Tape drive
hdc, hdd
20246: ide2, ide3, a 80gig HD, and a 3gig HD,
hde, hdf

So, the bus my actual disks were sitting was not supported: no wonder "can't find root" Can't see disk

If you've made sure you've compiled in your filesystem and any obvious hardware, make absolutely sure you're supporting anything not-so-obvious, like this IDE bus in my example. Try to compare a working boot messages log to one that doesn't, line by line, real carefully. There must be something in there that's not getting supported (failing you're having actual hardware failure, but I think what you've said is not about broken hardware.)

Here's my 2.6.16.16 off my Pentium4's config:

Code:
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDE_SATA=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDEFLOPPY=y
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
CONFIG_VIDEO_SELECT=y
and the P2 at same version:

Code:
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDE_SATA=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDETAPE=m
CONFIG_BLK_DEV_IDEFLOPPY=y
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
CONFIG_VIDEO_SELECT=y
The option that alone caused the kernel not to boot with the VFS errors was this one not being set:

Code:
CONFIG_BLK_DEV_PDC202XX_NEW=y
Have a look at "lsdev", "lspci", and compare the two boot sequences. "Unknown block 3-2" sure sounds alot like my PDC problem. Have a look at the other CONFIG_BLK_DEV stuff as well. From devices.txt:

Quote:
3 block First MFM, RLL and IDE hard disk/CD-ROM interface
0 = /dev/hda Master: whole disk (or CD-ROM)
64 = /dev/hdb Slave: whole disk (or CD-ROM)

For partitions, add to the whole disk device number:
0 = /dev/hd? Whole disk
1 = /dev/hd?1 First partition
2 = /dev/hd?2 Second partition
 
Old 05-20-2006, 04:52 PM   #3
tgo
Member
 
Registered: Dec 2004
Posts: 125

Original Poster
Rep: Reputation: 15
After reading your post and a freind going through it in screen I seemed to fix the issue thanks.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic: VFS PhuckFonix Linux - General 4 09-23-2007 10:53 AM
Grub and vfs kernel panic PB0711 SUSE / openSUSE 0 05-19-2006 05:49 PM
kernel panic: VFS: ... mrb Linux - Newbie 6 05-10-2004 10:56 AM
Kernel 2.6.1 VFS Panic rmanocha Linux - Software 1 02-01-2004 01:43 AM
kernel panic vfs sprex Linux - Software 0 04-05-2001 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:19 PM.

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