LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-01-2006, 06:05 AM   #1
Ajay7
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
Kernel panic: VFS: Unable to mount root fs


This is my first question on this list :-)

I've Slackware 10.2, kernel 2.4.x. The / fs is on ext3 on device /dev/hda2. Use lilo to boot.

I compiled kernel 2.6.17.11 with ext3 fs support. Updated lilo.conf and executed it. Rebooted and got this error message:

<snip>
VFS: Cannot open root device "032" or unknown-block(3,2)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(3,2)
</snip>

For some reason the new kernel is not able to find my / fs. I've specified the / (/dev/hda2) in lilo.conf. Ext3 support is built-in and not in modules.

And, I'm still able to boot using the old kernel. I trawled the net searching for an answer, and realised that lot of guys are encountering the same problem with kernel 2.6.x!! Is this a known issue? Any solutions?

Thanks,

Ajay
 
Old 09-01-2006, 10:18 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
could you paste your /etc/fstab and lilo.conf file here.
Quote:
unknown-block(3,2)
shouldnt this be (0,2)
 
Old 09-01-2006, 03:24 PM   #3
mjones490
Member
 
Registered: Sep 2005
Distribution: LFS
Posts: 60

Rep: Reputation: 22
Exact same thing happened. . . Slackware, Ext3 filesystem, compiled 2.6.17 kernel, Lilo. . . Kernel panic! Can't mount root. Took me a weekend to figure it out.

Re-run kernel config, make sure Ext3 file system is selected to compile in (not as a module), and rebuild.

Thanks,
Mark
 
Old 10-10-2006, 08:42 AM   #4
nigel_1820
LQ Newbie
 
Registered: Mar 2006
Distribution: OpenSUSE, Parsix, etc.
Posts: 20

Rep: Reputation: 0
I too had this problem under Gentoo (well, actually, still have...) when I compiled the 2.6.17 kernel. I made sure that ext3 (for that is what my root is on) support was compiled in, and have tried it with ReiserFS also. I haven't found a solution yet (then again, I just started looking). Any tips?

Nigel Macphereson
 
Old 10-10-2006, 09:55 AM   #5
slackperson
LQ Newbie
 
Registered: Feb 2006
Posts: 12

Rep: Reputation: 0
lilo problem

Very Maybe, but maybe it could be lilo?
In the lilo entry for that operating system it may not have a line for the root device.

something like root=/dev/hda3
(I think that is the syntax)

Hope this helps.
 
Old 10-12-2006, 04:36 PM   #6
tp11235
Member
 
Registered: Feb 2005
Posts: 106
Blog Entries: 1

Rep: Reputation: 15
I had the same problem and it was because I had not compiled in support for my IDE chipset during make menuconfig.

Check the settings under ATA/ATAPI/MFM/RLL Support for your particular chipset.

Without IDE support the kernel cannot run the harddisk.
 
Old 10-22-2006, 09:50 PM   #7
CamelWide
LQ Newbie
 
Registered: Aug 2006
Posts: 7

Rep: Reputation: 0
whats a lilo?????
 
Old 10-23-2006, 03:08 AM   #8
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
ah...
I did a google "define" for you

Quote:
# a type of inflatable air mattress
wordnet.princeton.edu/perl/webwn

# LILO (LInux LOader) is a boot loader for Linux.
en.wikipedia.org/wiki/LILO_(boot_loader)
 
Old 10-23-2006, 07:29 PM   #9
kdrlx
Member
 
Registered: Feb 2006
Distribution: Ubuntu Hardy Heron
Posts: 130

Rep: Reputation: 17
have the same issue on arch 0.7.2 ,, just compiled the 2.6.18 kernel .. root on /dev/hda2 .. grub entries perfect .. same error ..

on second thought. i removed support for ext2 from the kernel and only kept ext3 ... could that be an issue ?
 
Old 10-24-2006, 12:57 AM   #10
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 747

Rep: Reputation: 235Reputation: 235Reputation: 235
You can also use the "Search" function at the top of the menu, on keys "VFS: unable to mount root", searching in the "Titles Only" option, as this question has been asked in 78 different threads. It's usually one of two things, as I wrote here (different hardware and filesystem, same concept):

http://www.linuxquestions.org/questi...+to+mount+root

Others:
http://www.linuxquestions.org/questi...d.php?t=360249
http://www.linuxquestions.org/questi...d.php?t=241747
http://www.linuxquestions.org/questi...ad.php?t=36608


Quote:
shouldnt this be (0,2)
Depends on what the root filesystem has been set to. Your root=/dev/whatever is translated into a number. Check out devices.txt in /usr/src/linux/Documentation. It's usually 3,something due to...

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)
Also depends on how the disk controllers are setup. I've got a /dev/hda1 and also a /dev/hde1 as roots in two machines.
 
Old 10-24-2006, 01:44 AM   #11
kdrlx
Member
 
Registered: Feb 2006
Distribution: Ubuntu Hardy Heron
Posts: 130

Rep: Reputation: 17
Doesnt help

I will try not to be as snobby as some earlier reply but anyways the links provided dont work anyway ..
 
  


Reply

Tags
kernel, panic, vfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: Unable to mount root fs in 08:02 sebas_turu Debian 10 01-21-2008 01:04 AM
Kernel Panic :VFS :Unable to mount root fs on 00:00 mohsin649 Linux - Newbie 3 09-05-2005 06:29 AM
kernel panic VFS: unable to mount root davmonster Slackware 1 05-20-2003 07:44 PM
kernel panic: VFS Unable to mount root fs lusko Slackware 4 11-28-2002 03:04 PM
kernel panic: VFS: Unable to mount root fs on 09:01 Pauline1975 Linux - Hardware 1 07-24-2002 08:42 PM

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

All times are GMT -5. The time now is 06:26 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