I am having some problems using Windows Subsystem for Linux (Ubuntu 22.04.2 LTS). I need to access a folder I have accessed locally by mapping a network drive.
I have installed both WSL and Ubuntu from the Microsoft App Store. I have been using this system for months and never encountered a problem.
Since yesterday, when trying to open a Linux terminal for the folder in the drive I mapped, I get this error:
<3>WSL (358) ERROR: CreateProcessParseCommon:789: Failed to translate Z:/
I do not encounter the same problem when opening a Linux Terminal in any other folder such as Desktop, or anything local.
I am not familiar with these kinds of errors, so anything to try would help a lot.
You are most probably using Docker Desktop, Docker Dekstop makes it own distro and sets it as default, this is what causes the issue.
To make the default distro you mount to you can change it using the following command
wsl --list
wsl --setdefault <DISTRO_NAME>
This should solve your issue.
The Z
drive is likely not mounted.
sudo mount -t drvfs Z: /mnt/z
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With