In elevated PowerShell:
> wmic diskdrive list briefPick \\.\PHYSICALDRIVE<drive_num>
Now Mount that drive into WSL:
> wsl --mount \\.\PHYSICALDRIVE<drive_num> --bareInside WSL2, check device name:
$ dmesg | tailAdding a partition label and partitioning using fdisk:
$ sudo fdisk /dev/sdXPick options:
g: "create a new empty GPT partition table",n: "add a new partition" using all default settings and finallyw: "write table to disk and exit".
$ sudo cryptsetup luksFormat /dev/sdX1After following the prompts, map the newly created encrypted partition:
$ sudo cryptsetup open /dev/sdX1 <some_name>Format the mapped partition as ext4:
$ sudo mkfs.ext4 /dev/mapper/<some_name>Done 🥳
$ sudo mount /dev/mapper/<some_name> /mnt/<created_mountpoint>or
$ sudo umount /mnt/<some_name>