WSL mount ext hard drive on linux
# Pour rΓ©pertorier les disques disponibles dans Windows, exΓ©cutez :
wmic diskdrive list brief
#Caption DeviceID Model Partitions Size
#JMicron Generic SCSI Disk Device \\.\PHYSICALDRIVE1 JMicron Generic SCSI Disk Device 0
#Samsung SSD 970 EVO Plus 2TB \\.\PHYSICALDRIVE0 Samsung SSD 970 EVO Plus 2TB 4 2000396321280
#TOSHIBA EXTERNAL_USB USB Device \\.\PHYSICALDRIVE2 TOSHIBA EXTERNAL_USB USB Device 1 2000396321280
#Micron Crucial X6 SSD SCSI Disk Device \\.\PHYSICALDRIVE3 Micron Crucial X6 SSD SCSI Disk Device 1 4000784417280
# Pour monter un disque :
wsl --mount <DiskPath>
# Exemple :
wsl --mount \\.\PHYSICALDRIVE2 --partition 1
# Pour dΓ©monter et dΓ©tacher le disque de WSL 2, exΓ©cutez
wsl --unmount <Diskpath>
# EXemple :
wsl --unmount \\.\PHYSICALDRIVE2