WSL: wslpath -u doesn't work mounted VHDX drive or optical drive.

  • Your Windows build number: (Type ver at a Windows Command Prompt) Microsoft Windows [Version 10.0.17677.1000]

  • What you’re doing and what’s happening: (Copy&paste specific commands and their output, or include screen shots) C: is Hyper-V IDE Hard Drive D: is Hyper-V IDE DVD Drive media inserted E: is Hyper-V SCSI Hard Drive hot plugged F: is Mounted VHDX

# mount -t drvfs E: /mnt/e
# mount -t drvfs -r D: /mnt/d
# mount -t drvfs
C: on /mnt/c type drvfs (rw,noatime,uid=0,gid=0,metadata)
F: on /mnt/f type drvfs (rw,noatime,uid=0,gid=0,metadata)
E: on /mnt/e type drvfs (rw,relatime)
D: on /mnt/d type drvfs (ro,relatime,case=off)
# wslpath 'C:\'
/mnt/c/
# wslpath 'D:\'
wslpath: D:\: No such file or directory
# wslpath 'E:\'
/mnt/e/
# wslpath 'F:\'
wslpath: F:\: Permission denied
  • What’s wrong / what should be happening instead:
# wslpath 'C:\'
/mnt/c/
# wslpath 'D:\'
/mnt/d/
# wslpath 'E:\'
/mnt/e/
# wslpath 'F:\'
/mnt/f/

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 21 (3 by maintainers)

Most upvoted comments

I’ve identified the issue here and am working on a fix.

yes, it works for VeraCrypt mounted volumes as well now in 18252

Now, works fine on optical drive in build 18252.

Allow path translation on volumes without a volume GUID. https://docs.microsoft.com/en-us/windows/wsl/release-notes#build-18252-skip-ahead

Not have a GH number, but maybe this fix.

How about VeraCrypt?