sudo mount -t drvfs D: /mnt/dIdentify your disk
GET-CimInstance -query "SELECT * from Win32_DiskDrive"or
wmic diskdrive list briefMount using bare option:
wsl --mount \\.\PHYSICALDRIVE1 --bareMount LUKS device like this:
sudo lsblk
sudo blkid /dev/sdd3
sudo cryptsetup luksOpen /dev/sdd3 my-device
sudo mkdir -p /somewhere
sudo mount /dev/mapper/my-device /somewhereUnder windows you may explorer like this:
\\wsl.localhost\Debian\somewhereMount partition:
wsl --mount \\.\PHYSICALDRIVE1 --partition 1 --type ext4 --name myDiskUnder wsl it will be mounted at:
ls /mnt/wsl/PHYSICALDRIVE1p1
# or if name specified
ls /mnt/wsl/myDiskAfter use you can unmount:
wsl --unmount \\.\PHYSICALDRIVE1If want to mount an VHD disk first make it an device (use your ):
Write-Output "\\.\PhysicalDrive$((Mount-VHD -Path <pathToVHD> -PassThru | Get-Disk).Number)"VHD disks from wsl distros are saved at:
C:\Users[user]\AppData\Local\Packages[distro]\LocalState[distroPackageName]
wsl from microsoft store has option to mount VHD directly:
wsl --mount --vhd <pathToVHD>