WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Volumes mounted by Windows on paths aren't available to WSL

Open hatzka-nezumi opened this issue 5 years ago • 4 comments

Windows Build Number

Microsoft Windows [Version 10.0.19043.1165]

WSL Version

  • [X] WSL 2
  • [X] WSL 1

Kernel Version

5.10.16

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

  1. Create a new volume, such as by plugging in an external drive.
  2. Using Windows' Disk Management utility, mount the volume to an empty NTFS directory instead of a drive letter.
  3. Attempt to access the volume from a WSL guest.

Expected Behavior

The volume should be accessible from the WSL guest.

Actual Behavior

The guest sees the directory as a symlink. Dereferencing this symlink, or attempting to stat it, fails with a generic "input/output error" (EIO, according to Ruby).

Diagnostic Logs

No response

hatzka-nezumi avatar Aug 31 '21 23:08 hatzka-nezumi

I got similar problem. My host: Windows 11 Pro. Linux version: Ubuntu 20.04 I mount a vhdx put on a USB drive. It works fine for awhile. But at some point it will complain "Input/output error." The files on the whole USB drive becomes read-only. All I can do is to eject my USB drive, and then connect again and mount the vhdx again.

superpi15 avatar Jan 10 '22 17:01 superpi15

Has there been any progress on this issue? According to the best solution for this problem, I can access the local file, but the path under wsl is different from the path under windows, which is very inconvenient.

fortis-flumen avatar Apr 17 '23 08:04 fortis-flumen

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Yeah, SUBSTed drives basically don't work in wsl, although I can force-mount them and get around it during a session, no new mount point needed:

In CMD:

D:\>wsl
<3>WSL (318) ERROR: CreateProcessParseCommon:711: Failed to translate D:\
brbill@brbox:~$ ls /mnt/d
brbill@brbox:/mnt$ sudo mount -t drvfs D:\\ /mnt/d
[sudo] password for brbill:
brbill@brbox:/mnt$ ls /mnt/d
folder1        license.txt     readme.txt

Super not a fan of Microsoft closing this bug report as if it were fixed merely because nobody kept reporting the problem that hasn't changed in any way.

BrBill avatar Apr 18 '24 19:04 BrBill