Linux Kernel panic VFS Unable to mount root fs and solution

Q. I am using Linux on HP server and I am getting error that read as follows:
Linux Kernel panic: VFS: Unable to mount root fs

ADVERTISEMENTS

How do I solve this problem?

A. Most modern distributions including Debian uses loadable kernel module for ext3 file system. So to read ext3/ext2 file system kernel must load ext3 kernel module (ext3.ko).

This module is included in an initrd image. If an initrd image is missing or that image does not include suitable kernel modules to access the ext3 filesystem on the partition, an error message (Linux Kernel panic: VFS: Unable to mount root fs) will be displayed to you.

To solve this problem you need to use mkinitrd script that constructs a directory structure that can serve as an initrd root file system.

The instructions for creating initrd images are here on our site.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
5 comments… add one
  • Scott Smith Mar 13, 2008 @ 18:51

    Most modern distributions including Debian uses loadable kernel module for ext3 file system. So to read ext3/ext2 file system kernel must load ext3 kernel module (ext3.ko).

    Would building ext2/ext3 into the kernel suffice? I have been trying to solve the problem by building everything needed for bootup into the kernel. If that is feasible in principle, how would I determine everything that needs to be built-in. This is on an Aspire 5720.

  • dockyard Apr 2, 2009 @ 12:42

    Please provide some knowledge about Linux “Kernel Panic error”

  • Jetdre Aug 18, 2010 @ 17:39

    I’ve a little stupid question about. How do you take the console when is not possible load the virtual machine? I’ve the topic problem after actualize the kernel (I can’t sure.. but it happen after upgrade) and one time can rescue, then was (and remain been) impossible loader again. I’m back (happy) when it resolved..

  • sachin Feb 17, 2011 @ 8:20

    i am using the wipro (netpower)server and i am getting Linux Kernel panic: VFS: Unable to mount root fs 08.03 this error

  • exo Jun 18, 2011 @ 14:17

    Your hint helped me a lot! I was trying to run a RTLinux kernel but this message was being shown at boot time, along with a ‘kernel panic’. I re-made my kernel again, adding support for Reiser file systems, and that finally worked perfect. Thanks!

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.