Mounting Windows drive letters in WSL

July 18, 2021

# create the mount point directory, with the appropriate permissions
sudo install -m 777 -o $USER -g $USER -d /mnt/d
# mount the drive
sudo mount -t drvfs 'D:' /mnt/d
# when done, umount it
sudo umount /mnt/d