run appwiz.cpl
turn windows feature on/off
tick window subsystem for linux and ok
update wsl2 kernel :: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
wsl --set-default-version 2
wsl --list -v
get disk path
open powershell
GET-CimInstance -query "SELECT * from Win32_DiskDrive"
to mount disk in wsl
wsl --mount <DiskPath> --bare
<DiskPath> = device id here \\.\PHYSICALDRIVE1, \\.\PHYSICALDRIVE0
wsl --mount <Diskpath> -p <PartitionIndex>
source::: https://docs.microsoft.com/en-us/windows/wsl/wsl2-mount-disk
Comments
Post a Comment