Is usb supported on Bash on Ubuntu on Windows 10?

后端 未结 2 703
庸人自扰
庸人自扰 2020-12-23 12:26
  • I have no files or paths about usb on dev/
  • When I plug in a flash disk, nothing appears on dev/ or mnt/ or media/ about it.
  • sudo lsusb

2条回答
  •  生来不讨喜
    2020-12-23 12:48

    Good news, it is now possible to mount USB media (including FAT formated) and network shares with drvfs on Windows 10:

    Mount removable media: (e.g. D:)

    $ sudo mkdir /mnt/d
    $ sudo mount -t drvfs D: /mnt/d
    

    To safely unmount

    $ sudo umount /mnt/d
    

    You can also mount network shares without smbfs:

    $ sudo mount -t drvfs '\\server\share' /mnt/share
    

    You need at least Build 16176 so you might have to opt-in to the Windows Insider programm and then update Windows. Source: https://blogs.msdn.microsoft.com/wsl/2017/04/18/file-system-improvements-to-the-windows-subsystem-for-linux/

提交回复
热议问题