Windows WSL mount mobile hard disk

created at 05-30-2022 views: 3

WSL will not automatically mount peripherals such as mobile hard disks, U disks, etc., you need to manually mount them before you can access:


sudo mount -t drvfs X: /mnt/x/

Uninstall, to achieve normal ejection of mobile hard disk/U disk

sudo umount /mnt/x/

Set up a soft link: All data is stored in the mobile hard disk, and a soft link is set directly in the root directory for easy access:

ln -s /mnt/x/filename .
created at:05-30-2022
edited at: 05-30-2022: