Some Windows subsystems for Linux users have been experiencing the message “ An error occurred while mounting the file system. Run 'dmesg' for details ” when running their installed Linux distribution.
As it turns out, the error message occurs when the distribution you have installed, or plain WSL, is unable to mount Windows drives. While this may seem like a big problem, it actually isn’t and you can easily fix it through a few different methods. In this article, we’ll show you how to resolve the error message in question, so read on.

How to fix an error occurred while mounting the file system?
It turns out that the Windows Subsystem for Linux has been a revolutionary feature for Windows, especially when it comes to power users who are more interested in the development field.
Installing WSL is pretty easy and you can now do it with a single command. Most users who have encountered the issue in question have been using Dockers and often the problem arises when your distribution is not set as the default OS.
That being said, there are several ways to resolve the much-mentioned error mounting the file system. So, without further ado, let’s get started and jump straight into the topic.
Update the Linux kernel or WSL
The first thing you should do when you encounter this problem is to try updating the Windows Subsystem for Linux , which will essentially update your Linux kernel. Reports indicate that doing so fixed the issue for several users, so it might work for you as well. This is quite simple to do and is accomplished with a single command. Follow the instructions below to do this:
- First, open a symbol of the system elevated. To do that, open the start menu and look for the symbol of the system. On the right side, click on the option Run as administrator provided.

- Alternatively, you can also use a raised window Powershell.
- At the command prompt or Powershell window, type » wsl-update » without the quotes and then press Enter.

- Wait for the update to complete. Once done, launch WSL again to see if the issue is resolved.
Check default distribution
As it turns out, in some cases, the problem may arise when you have installed Docker on the Windows Subsystem for Linux. As such, when you try to boot a Linux distribution, you may encounter the above error message due to it not being set as the default distribution.
Besides that, in case you only have docker along with docker-desktop-data distribution, the latter may be set as the default distribution which may trigger the issue.
If this case is applicable, you will simply need to change your default distribution accordingly to resolve the issue. To do this, follow the instructions below:
- To begin, open an elevated command prompt by opening the start menu and looking cmd. Click on the option Run as administrator which is on the right side.

- Then in the command prompt window, you can check your installed distributions along with the default one using the command “wsl –list".
- If an incorrect distribution is set as the default, you can change the default distribution using the command «wsl -s distroName«. Obviously, you will need to replace the keyword distroName with the name of the distribution displayed in the list.
- Once this is done, see if the problem still occurs.
Install Windows Updates
Since the Windows Subsystem for Linux is a part of Windows, it can be directly affected by Windows updates. Some users reported that the issue in question was resolved after installing Windows updates. To be specific, update KB5005191 seemed to have resolved the issue for several users.
So, if you haven't installed Windows updates for a while, we recommend updating Windows as it might also fix the problem. Follow the instructions below to do this:
- First of all, open the app Configuration Windows by pressing the tecla Windows + I on your keyboard.
- In the Windows Settings app, go to the section Windows update.

- There, click on the option Search for updates provided to download and install available updates.

- Once the updates have been installed and your computer restarts, see if the failed to mount file system message is still there.
Uninstall Windows Hypervisor Platform
Finally, if the above methods have not fixed the problem, then uninstalling the Windows Hypervisor Platform feature might work for you.
This has been reported by a user who was facing a similar error message during the installation and configuration phase of Ubuntu using Windows Subsystem for Linux 2. To resolve the issue, he uninstalled the mentioned feature and Ubuntu installations started working fine. Follow the instructions below to do this:
- To get started, open the Panel of control by looking for it in the start menu.

- Then go to Programs

- Once you are there, click on the option Turn on or off the Windows features that are provided.
- In the tracking window, scroll down and locate Windows Hypervisor Platform.
- Uncheck the Windows Hypervisor Platform check box and then click the button Accept.
- Once this is done, the Windows Hypervisor Platform feature will be uninstalled.
- Now, go ahead and check if the error message mounting file system is lurking. You don’t need to restart your computer before doing so.
With these simple tips, you'll have no problem fixing the " An error occurred while mounting the file system" message. If you found this information helpful, please share it with your friends and family. You can also share your experience in the comments section. Thanks for visiting, and we'll see you next time. Keep reading; we always have interesting information for you.