Windows 10上的Ubuntu上的Bash支持usb吗? [英] Is usb supported on Bash on Ubuntu on Windows 10?

查看:171
本文介绍了Windows 10上的Ubuntu上的Bash支持usb吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 在dev/
  • 上没有关于usb的文件或路径
  • 当我插入闪存盘时,dev/或mnt/或media/上没有任何内容.
  • sudo lsusb返回:

  • 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 returns:

unable to initialize libusb: -99

我应该怎么做才能在bash上启用USB访问?

What should i do to enable usb access on bash?

推荐答案

好消息,现在可以在Windows 10上通过drvfs挂载USB介质(包括FAT格式)和网络共享了:

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

安装可移动媒体:(例如D:)

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

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

要安全卸载

$ sudo umount /mnt/d

您也可以不使用smbfs挂载网络共享:

You can also mount network shares without smbfs:

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

您至少需要内部版本16176,因此您可能必须选择加入Windows Insider程序,然后更新Windows.来源:

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/

这篇关于Windows 10上的Ubuntu上的Bash支持usb吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆