For those who’re on a model of Home windows 11 that’s construct 22000 or better, now you can use WSL to mount Linux disks straight. Run winver to see your Home windows model. I am on 22000.282 as of the time of this writing.
I can even run wsl –help and see the –mount directions. If you do not have them, you are not on the most recent, or you possibly can strive putting in/replace WSL from the Home windows Retailer. Putting in WSL from the Home windows Retailer will get you updates quicker.
Attaches and mounts a bodily disk in all WSL2 distributions.
Connect the disk to WSL2, however do not mount it.
Filesystem to make use of when mounting a disk, if not specified defaults to ext4.
Extra mount choices.
Index of the partition to mount, if not specified defaults to the entire disk.
Unmounts and detaches a disk from all WSL2 distributions.
Unmounts and detaches all disks if known as with out argument.
You may should be an admin to mount a disk. You possibly can first get a listing of all of the disks utilizing this PowerShell question:
GET-CimInstance -query "SELECT * from Win32_DiskDrive"
The DeviceID is a path like .SOMETHING and that is what issues.
Then you definately simply
wsl --mount .SOMETHING".
The gadget will seem beneath /mnt/wsl/SOMETHING in your Linux occasion. You possibly can mount unpartitioned disks like this, otherwise you can mount partitioned disks. Then you possibly can run lsblk and see the partitions they usually’ll be beneath /dev/<Gadget><Partition>. As soon as you realize the partition quantity you possibly can return and
wsl --mount --.SOMETHING --partition --type Filesystem. The filesystem parameter is for issues like vfat, and many others for filesystems which have kernel assist.
Right now SD Playing cards and Flash Drives aren’t working, however USB externals work and inside drives work, in addition to VHDs.
Sponsor: Couchbase Capella DBaaS is versatile, full-featured and absolutely managed with built-in entry through Okay/V, SQL and full textual content search. It’s blazing quick, but surprisingly reasonably priced. Strive Capella as we speak free of charge.