Pulling in EXT4 drives is easy now with Windows WSL2. There are a few tricks that you need to know about though!
winver
from RunSyntax pulled from https://learn.microsoft.com/en-us/windows/wsl/wsl2-mount-disk
List Drives
GET-CimInstance -query "SELECT * from Win32_DiskDrive"
Mount and list Drive Partitions
wsl --mount <DiskPath> --bare
wsl
List Drive Partitions from WSL Instance
lsblk
List Drive Types and IDs
sudo blkid
Note: By default Windows will always assume it is EXT4, unless the -t vfat
option is used.
From Windows PowerShell
wsl --mount \\.\PhysicalDrive1 --partition 2
This will make it available in both Windows Explorer and WSL /mnt/wsl/PhysicalDrive1
path.
wsl --unmount \\.\PhysicalDrive1