代码之家  ›  专栏  ›  技术社区  ›  darkpirate

vmware ubuntu:连接外部驱动器时出现错误usb 4-1:stat urb:status-32

  •  1
  • darkpirate  · 技术社区  · 7 年前

    当我尝试连接我的希捷M3时,虚拟机实际上可以识别它,但它无法安装,也无法被系统识别。经过一点挖掘,看起来该设备确实已作为命令连接 显示:

    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
    

    有人知道为什么会这样吗?无法在网上找到任何相关内容。

    2 回复  |  直到 7 年前
        1
  •  3
  •   ralf htp    7 年前

    这个 usb 4-1 stat urb : status -32 意味着 城市 ( U 某人 r equest公司 b 锁定)报告 错误-32 http://www.makelinux.net/ldd3/chp-13-sect-3 对于 城市 http://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=183190 , https://bbs.archlinux.org/viewtopic.php?id=183723

    archlinux的解决方案在 Da_Coynul的 回答,这是“黑名单” uas 通过配置 usb-storage

    通过告诉 it:

    ignore_uas.conf /etc/modprobe.d 包含以下内容的目录*

     options usb-storage quirks=Vendor_ID:Product_ID:u
    

    *(替换您从 lsusb -v 命令)。

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

     # mkinitcpio -p linux
    

    此解决方案必须适用于虚拟机。可能遵循以下指南: https://www.vmware.com/support/ws45/doc/disks_add_ws.html 因为SCSI设备的热插拔似乎不受支持:

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

        2
  •  1
  •   darkpirate    7 年前

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