Skip to content

wsl --mount fails when physical drive is detected #10208

Description

@thangphu

Windows Version

Version 10.0.22621 Build 22621

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

PS C:\WINDOWS\system32> GET-CimInstance -query "SELECT * from Win32_DiskDrive" DeviceID Caption Partitions Size Model -------- ------- ---------- ---- ----- \.\PHYSICALDRIVE1 SDHC Card 2 16014620160 SDHC Card \.\PHYSICALDRIVE0 KXG60ZNV1T02 NVMe KIOXIA 1024GB 4 PS C:\WINDOWS\system32> wsl --mount \.\PHYSICALDRIVE1 --bare The system cannot find the drive specified. Error code: Wsl/Service/AttachDisk/0x8007000f

Expected Behavior

Expected the disk mount to be successful since it can be detected.

Actual Behavior

diskmount failed with error code: Wsl/Service/AttachDisk/0x8007000f

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions