Skip to content

Access denied when accessing DrvFS /mnt/c through \\wsl.localhost or \\wsl$ on Windows build 26200 #41658

Closed

Description

Windows Version

ProductName Windows 10 Pro DisplayVersion 25H2 CurrentBuild 26200 UBR 9445

WSL Version

2.9.12.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.18.40.1

Distro Version

UBUNTU 22.04

Other Software

No response

Repro Steps

Problem

Windows cannot access a Windows drive mounted in WSL through the WSL UNC filesystem.

For example:

\\wsl.localhost\Ubuntu\mnt\c

and:

\\wsl$\Ubuntu\mnt\c

return "Access is denied".

In File Explorer, navigating to:

Linux > Ubuntu > mnt > c

shows:

(null) is not accessible.
Access is denied.

The dialog sometimes also contains apparently corrupted/garbage characters below the error.

However, accessing the DrvFS mount from inside WSL works correctly, and accessing native Linux files through \wsl.localhost also works correctly.

Environment

WSL version: 2.9.12.0
Kernel version: 6.18.40.1-1
WSLg version: 1.0.79
MSRDC version: 1.2.7214
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.9445

Distribution:

Ubuntu
WSL version: 2

Get-ComputerInfo:

WindowsProductName : Windows 10 Pro
WindowsVersion     : 2009
OsBuildNumber      : 26200

WSL system kernel:

Linux version 6.18.40.1-microsoft-standard-WSL2
(root@71c659030f6c)
(gcc (GCC) 13.2.0, GNU ld (GNU Binutils) 2.41)
#1 SMP PREEMPT_DYNAMIC Fri Jul 31 22:12:15 UTC 2026

The problem was present with WSL 2.7.14 and remains after upgrading
to WSL 2.9.12 prerelease.

/etc/wsl.conf

[boot]
systemd=true

[interop]
enabled=true
appendWindowsPath=true

What works

From Ubuntu:

$ whoami
xbusto

$ ls /mnt/c/Users/xbusto

successfully lists my Windows profile.

The C: drive is mounted:

C:\ on /mnt/c type 9p
(rw,noatime,aname=drvfs;path=C:\;uid=1000;gid=1000;...)

Windows can also access native Linux files successfully:

dir \\wsl.localhost\Ubuntu\home\xbusto

This lists my Ubuntu home directory normally.

Therefore:

Ubuntu -> /mnt/c                         WORKS
Windows -> \\wsl.localhost\Ubuntu\home   WORKS

What fails

From a normal, non-elevated PowerShell:

dir \\wsl.localhost\Ubuntu\mnt\c\Users\xbusto

returns:

dir : Access is denied
CategoryInfo : PermissionDenied
FullyQualifiedErrorId :
ItemExistsUnauthorizedAccessError,
Microsoft.PowerShell.Commands.GetChildItemCommand

It then additionally reports:

Cannot find path
'\\wsl.localhost\Ubuntu\mnt\c\Users\xbusto'
because it does not exist.

The same problem occurs with:

dir \\wsl$\Ubuntu\mnt\c\Users\xbusto

Therefore:

Windows -> \\wsl.localhost\Ubuntu\mnt\c   FAILS
Windows -> \\wsl$\Ubuntu\mnt\c            FAILS

Manually mounted DrvFS reproduction

To determine whether this was specific to /mnt/c, I created another
DrvFS mount inside Ubuntu:

sudo mkdir -p /testc
sudo mount -t drvfs C: /testc

Inside Ubuntu:

ls /testc/Users/xbusto

works correctly.

However, from Windows:

dir \\wsl$\Ubuntu\testc\Users\xbusto

also returns "Access is denied".

This suggests the problem follows a DrvFS-backed mount rather than
being specific to /mnt/c.

WSL network provider

P9NP is registered:

HKLM\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order

ProviderOrder REG_SZ RDPNP,P9NP,LanmanWorkstation,webclient

P9NP service registration exists under:

HKLM\SYSTEM\CurrentControlSet\Services\P9NP

WslService is running:

Status   Name        DisplayName
Running  WslService  WSL Service

Reproduction

  1. Start Ubuntu under WSL2.

  2. From Ubuntu verify:

    ls /mnt/c/Users/<Windows user>
    

    This works.

  3. From Windows verify:

    dir \\wsl.localhost\Ubuntu\home\<Linux user>
    

    This works.

  4. From Windows run:

    dir \\wsl.localhost\Ubuntu\mnt\c\Users\<Windows user>
    
  5. Access is denied.

The same failure occurs using \wsl$.

The same failure also occurs if C: is manually mounted to a different
location with:

mount -t drvfs C: /testc

and Windows attempts to access:

\\wsl$\Ubuntu\testc

Expected behavior

If re-exporting a DrvFS filesystem through the WSL UNC filesystem is
supported, I expect:

\\wsl.localhost\Ubuntu\mnt\c

to be accessible from Windows.

If accessing DrvFS mounts through the WSL UNC interface is intentionally
unsupported, File Explorer should ideally handle this explicitly rather
than displaying:

(null) is not accessible

along with corrupted-looking characters.

Additional information

Reproduces with:

  • WSL 2.7.14
  • WSL 2.9.12
  • \wsl$
  • \wsl.localhost
  • automatic /mnt/c DrvFS mount
  • manually created drvfs C: mount
  • non-elevated PowerShell

Native Linux files through \wsl.localhost continue to work normally.

Expected Behavior

browse /mnt/c normally

Actual Behavior

Image

Diagnostic Logs

No response

Activity

  1. github-actions commented on Sep 21, 2026

    @github-actions
    Contributor

    Logs are required for review from WSL team

    If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
    Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

    How to collect WSL logs

    Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

    Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
    Set-ExecutionPolicy Bypass -Scope Process -Force
    .\collect-wsl-logs.ps1
    

    The script will output the path of the log file once done.

    If this is a networking issue, please use .\collect-wsl-logs.ps1 -LogProfile networking instead, following the instructions in Collect WSL logs for networking issues

    Once completed please upload the output files to this GitHub issue.

    See Collect WSL logs (recommended method).

    If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

  2. chemwolf6922 commented on Sep 22, 2026

    @chemwolf6922
    Contributor

    Hi Xuan Busto (@xbusto-wyn) .
    This denial is by design. Please access C: directly when needed.

    The normal error dialog should look like this:

    Image

    Please consider file a bug in the Windows feedback hub to report the dialog issue. Thanks.

  3. added
    external
    and removed on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bydesignexternal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions