
Now the disk is available to the layer and you can use the common linux command lsblk Note your disk to mount and enter: wsl -mount -bare List and select the partitions to mount in WSL2 Usually under the \.\PHYSICALDRIVE* format.

The disks paths are available under the 'DeviceID' columns. Open a powershell (or something else) and type wmic diskdrive list brief The following steps are taken from the microsoft's homepage docu wls2-mount-disk :

I recommend to simply follow the microsoft installation guide (note the minimum version required). The Windows 10 WSL2 now supports a mount command for linux filesystems called wsl.įirst of all you have to install WSL2 on your windows10+ release. In May 2019, WSL 2 was announced, introducing important changes such as a real Linux kernel, through a subset of Hyper-V features. Linux binary executables natively on Windows 10 and Windows ServerĢ019. Windows Subsystem for Linux is a compatibility layer for running Concretely, this means that it's not possible to use wsl -mount to read a partition on the boot device, because that device can't be detached from Windows.įor people who are not familiar with WSL2:

Windows allows now to mount physical disks using the Windows Subsystem for Linux 2 (WSL).
