Unable to access WSL mounted disk (\\wsl.localhost\Ubuntu\mnt\c) from File Explorer due to Permission Denied
Windows Version
Microsoft Windows [Version 10.0.19045.4046]
WSL Version
2.0.14.0
Are you using WSL 1 or WSL 2?
- [X] WSL 2
- [ ] WSL 1
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04
Other Software
File Explorer
Repro Steps
- Install WSL 2
- Try to open
\\wsl.localhost\Ubuntu\mnt\cfrom File Explorer
Expected Behavior
File Explorer should allow to open such mounted disk.
Actual Behavior
File Explorer returns a permission denied when trying to open the \\wsl.localhost\Ubuntu\mnt\c directory.
Diagnostic Logs
No response
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Closed similar issues:
- Cannot access filesystem through explorer - \wsl.localhost\Ubuntu\mnt (#8512), similarity score: 0.87
- WSL can not access mounted drives (#11079), similarity score: 0.77
- Cannot mount disk to wsl (#8246), similarity score: 0.76
- WSL2: can't access linux file system from Windows Explorer (#4812), similarity score: 0.75
- WSL2: can't access linux file system from windows (#4260), similarity score: 0.74
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
What's the default users configured in your distro ? If that user doesn't have access to the mount point, that can explain this error.
The username is the one I created during WSL installation.
From WSL I can list all the dir and files under /mnt/d and the WSL user matches both the owner and the group,
however I get a Permission denied for the System Volume Information.
Same here. It used to work like 2 days ago, now I cannot use the WSL-based Python venv that I have created using PyCharm, since the directories appear to be empty.
我也有同样的问题。 我在Windows的pycharm中调试代码时,程序不能访问/mnt/d下的资源。但是在WSL2中,确可以正常访问/mnt/d下的所有内容。 我尚不清楚如何解决。
Same, was using pycharm and can not access folders under:\mnt
Tried anything I can think of.
Comprehensive Troubleshooting Steps Performed:
A. Basic Resets
Repeatedly used wsl --shutdown and restarted the PC.
B. Network Stack Repair
Executed netsh winsock reset and netsh int ip reset in an administrator terminal, followed by a mandatory reboot.
C. Known Bug Workarounds
Created a .wslconfig file in %USERPROFILE% with [wsl2] networkingMode=mirrored to specifically address the known deadlock bug reported in GitHub Issue #11222.
Checked the Network Provider Order in the registry for PnPIM priority.
Checked and confirmed that no file compression or encryption is enabled on the WSL package installation folder.
Tested the alternative \wsl$ path, which also failed.
Temporarily disabled the third-party firewall completely to rule it out.
D. System & Hardware Checks
Verified in BIOS/UEFI that hardware virtualization (Intel VT-x / AMD-V) is enabled.
Ran sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth to find and fix potential Windows system file corruption. No issues were found or fixed that resolved the problem.
E. Full Reinstallation & Isolation Testing
Diagnostic Install: A brand new "Debian" distribution was installed from the Microsoft Store to isolate the problem. This new, clean distro exhibited the exact same access error, confirming the fault lies within the Windows host system, not a specific distribution.
Full Feature Reinstallation: All three related Windows Features (Windows Subsystem for Linux, Virtual Machine Platform, Windows Hypervisor Platform) were disabled, followed by a reboot, then re-enabled, followed by another reboot.
Complete WSL Stack Reinstallation: A final, thorough reinstallation was performed:
Unregistered all distributions (wsl --unregister ...).
Uninstalled all distro apps from Windows Settings.
Disabled all three WSL-related features in the "Windows Features" panel.
Rebooted the PC.
Ran wsl --install in an administrator PowerShell to perform a fresh, default installation of the entire stack and a new Ubuntu 24.04.
Something else worth checking: In /etc/wsl.conf, under [automount], make sure mountFsTab is not set to false.