【问题标题】:vmware ubuntu: error usb 4-1: stat urb: status -32 when connecting external drivevmware ubuntu:错误usb 4-1:stat urb:连接外部驱动器时的状态-32
【发布时间】:2017-10-16 19:01:59
【问题描述】:

我正在使用带有 ubuntu 14.04 LTS 的 vmware。 当我尝试连接我的希捷 M3 时,虚拟机实际上可以识别它,但它不会被系统挂载或识别。经过一点点挖掘,看起来设备确实已连接,如命令 lsusb 所示:

Bus 004 Device 004: ID 0bc2:61b6 Seagate RSS LLC 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

检查系统日志显示系统实际上尝试挂载它,但失败了:

Oct 16 11:42:43 ubuntu kernel: [  479.209798] usb 4-1: new SuperSpeed USB device number 4 using xhci_hcd
Oct 16 11:42:43 ubuntu kernel: [  479.228756] usb 4-1: New USB device found, idVendor=0bc2, idProduct=61b6
Oct 16 11:42:43 ubuntu kernel: [  479.228774] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 16 11:42:43 ubuntu kernel: [  479.228775] usb 4-1: Product: M3
Oct 16 11:42:43 ubuntu kernel: [  479.228776] usb 4-1: Manufacturer: Seagate
Oct 16 11:42:43 ubuntu kernel: [  479.228777] usb 4-1: SerialNumber: NM124VYT
Oct 16 11:42:43 ubuntu kernel: [  479.427608] scsi host35: uas
Oct 16 11:42:43 ubuntu kernel: [  479.429253] usb 4-1: stat urb: status -32
Oct 16 11:42:43 ubuntu kernel: [  479.429273] scsi 35:0:0:0: tag#0 data cmplt err -32 uas-tag 1 inflight: CMD 
Oct 16 11:42:43 ubuntu kernel: [  479.429276] scsi 35:0:0:0: tag#0 CDB: Inquiry 12 00 00 00 24 00
Oct 16 11:42:41 ubuntu vmsvc[1298]: message repeated 10 times: [ [ warning] [guestinfo] Failed to get vmstats.]
Oct 16 11:42:43 ubuntu mtp-probe: checking bus 4, device 4: "/sys/devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb4/4-1"
Oct 16 11:42:43 ubuntu mtp-probe: bus: 4, device: 4 was not an MTP device
Oct 16 11:43:04 ubuntu kernel: [  500.862644] scsi 35:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD 
Oct 16 11:43:04 ubuntu kernel: [  500.862650] scsi 35:0:0:0: tag#0 CDB: Inquiry 12 00 00 00 24 00
Oct 16 11:43:04 ubuntu kernel: [  500.862713] scsi host35: uas_eh_bus_reset_handler start
Oct 16 11:43:04 ubuntu kernel: [  500.977721] usb 4-1: reset SuperSpeed USB device number 4 using xhci_hcd
Oct 16 11:43:04 ubuntu kernel: [  501.014051] scsi host35: uas_eh_bus_reset_handler success
Oct 16 11:43:04 ubuntu kernel: [  501.014652] usb 4-1: stat urb: status -32
Oct 16 11:43:04 ubuntu kernel: [  501.017564] scsi 35:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD 
Oct 16 11:43:04 ubuntu kernel: [  501.017567] scsi 35:0:0:0: tag#0 CDB: Test Unit Ready 00 00 00 00 00 00
Oct 16 11:43:04 ubuntu kernel: [  501.017570] scsi host35: uas_eh_bus_reset_handler start
Oct 16 11:43:05 ubuntu kernel: [  501.234951] usb 4-1: reset SuperSpeed USB device number 4 using xhci_hcd
Oct 16 11:43:05 ubuntu kernel: [  501.301555] scsi host35: uas_eh_bus_reset_handler success
Oct 16 11:43:05 ubuntu kernel: [  501.301561] scsi 35:0:0:0: Device offlined - not ready after error recovery

显然我在使用这个 USB 4-1 时遇到了这个 -32 错误。

有人知道为什么会发生这种情况吗?在网上找不到任何相关内容。

【问题讨论】:

    标签: ubuntu usb vmware


    【解决方案1】:

    usb 4-1 是 USB 端口号,stat urb : status -32 表示 urb ( USB request block ) 报告 error -32 (破管) cf。 http://www.makelinux.net/ldd3/chp-13-sect-3 用于 urbhttp://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.html 用于错误代码

    问题很可能是 UAS 模块https://en.wikipedia.org/wiki/USB_Attached_SCSI),请参阅https://bbs.archlinux.org/viewtopic.php?id=183190https://bbs.archlinux.org/viewtopic.php?id=183723

    archlinux 的解决方案在 Da_Coynul 的 答案中的 https://bbs.archlinux.org/viewtopic.php?id=183190 中,它通过配置 usb-storage 模块将特定 SCSI 驱动器的 uas 模块“列入黑名单”:

    我能够通过告诉我的外部驱动器再次工作 usb-storage 模块忽略设备的 uas。这是怎么做 它:

    首先,在/etc/modprobe.d 中创建一个名为ignore_uas.conf 的文件 包含以下内容的目录*

     options usb-storage quirks=Vendor_ID:Product_ID:u
    

    *(替换您从lsusb -v 命令获得的实际Vendor_ID 和Product_ID)。

    接下来,重新生成您的初始 ramdisk:

     # mkinitcpio -p linux
    

    此解决方案必须适用于虚拟机。也许请遵循本指南:https://www.vmware.com/support/ws45/doc/disks_add_ws.html,因为似乎不支持热插拔 SCSI 设备:

    不支持热添加和移除 SCSI 设备。

    来源:https://docs.vmware.com/en/VMware-vSphere/6.0/com.vmware.vsphere.hostclient.doc/GUID-3E6E58AA-2AD4-4370-9955-07E5FBDE800D.html

    【讨论】:

    • 感谢您的信息。我没有找到任何有用的解决方案来适应我的问题......至少现在我知道发生了什么。
    【解决方案2】:

    作为一种解决方法,在使用虚拟机时,您可以在主机上共享该文件夹,方法是将其添加到设置>选项面板>共享文件夹中。考虑到客人和主人之间的额外通信层,它要慢得多,但至少您可以访问驱动器。

    【讨论】:

      猜你喜欢
      • 2017-11-17
      • 2023-04-10
      • 1970-01-01
      • 2016-04-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多