15

I use Windows 11 as operating system. Its build number is: 22000.348

I installed Debian from store, and then I installed Windows Subsystem for Linux Preview.

WSL version is: 2

Debian runs correctly and there is no problem with it. But when I run Windows Subsystem for Linux Preview application, this error occurs:

Processing fstab with mount -a failed.

[process exited with code 1 (0x00000001)]

  • Why is this happening?
  • How Can I prevent this?
  • What Windows Subsystem for Linux application does?
Parsa
  • 271

3 Answers3

25

From the comments, it sounded like this may be due to a bug of some sort in the Preview version of WSL installed from the Store.

Ultimately (also from the comments), the problem turned out to be that one of the Docker WSL instances became the "default" for WSL. So running the "Debian" distribution specifically would work. Running the WSL application (which runs wsl.exe),however, was attempting to start the docker image, which isn't meant to be accessed directly (and was resulting in the fstab error).

This was found via wsl -l -v showing the Docker image as default.

The solution was to use:

wsl -s Debian

... to set the default distribution.

While this isn't necessary a "bug", there is an open Github issue suggesting that WSL have a mechanism that will allow docker-desktop-data (and other distributions that aren't supposed to be run by the end-user) to be "hidden".

NotTheDr01ds
  • 28,025
2

Expanding on NotTheDr01ds answer:

If you need to install another distro, such as ubuntu, you can do so via:

wsl --install
#Warning - may break docker desktop!

You can then have that distro be the default instead of the not working docker integration.

However, this will possibly then break your docker desktop integration.

Panky
  • 141
0

Clear bad drive mount from /etc/fstab

In my case fstab was mounting a bad drive. I removed the line from /etc/fstab and all is well.

Also saw this comment in WSL issues to help me with the issue.

BruceJo
  • 244