Skip to content

Mounting EXT4 formatted disk reports incorrect parameter. #12139

@ianjt

Description

@ianjt

Windows Version

10.0.22631.4169

WSL Version

2.2.4.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.15.153.1-microsoft-standard-WSL2 (root@941d701f84f1) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Fri Mar 29 23:14:13 UTC 2024

Distro Version

Ubuntu 24.04 LTS

Other Software

No response

Repro Steps

SSD was formatted as EXT4
{DF73C745-1CF0-4E6B-AA7C-9C12B3055D76}

In admin PowerShell:

wmic diskdrive list brief
Caption DeviceID Model Partitions Size
Samsung SSD 990 PRO 2TB \.\PHYSICALDRIVE0 Samsung SSD 990 PRO 2TB 1 2000396321280
Intel Raid 0 Volume \.\PHYSICALDRIVE1 Intel Raid 0 Volume 5 1024211865600
PC611 NVMe SK hynix 512GB \.\PHYSICALDRIVE2 PC611 NVMe SK hynix 512GB 1 512105932800

wsl --mount \.\PHYSICALDRIVE0 [--partition 1] [-t ext4] [--bare] # [...] = options also tried.
(Note bug in preview only displaying \ where there is \\ in original.)

Expected Behavior

The SSD should mount without error.

Actual Behavior

Output:
The parameter is incorrect.
Error code: Wsl/Service/AttachDisk/HCS/E_INVALIDARG

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions