我使用vmware和ubuntu 14.04 LTS。 当我尝试连接我的希捷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
检查syslog显示系统实际上尝试挂载它,失败:
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错误。
有没有人知道为什么会这样?无法在网上找到任何相关内容。
答案 0 :(得分:2)
usb 4-1
是USB端口号,stat urb : status -32
表示 urb ( U SB r equest < strong> b lock)报告错误-32 (断管)cf. urb 的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 答案中的https://bbs.archlinux.org/viewtopic.php?id=183190,它是黑名单&#39;通过配置uas
模块:
usb-storage
模块
通过告诉我,我能够让我的外部驱动器再次工作 usb-storage模块忽略设备的uas。这是怎么做的 它:
首先,在
ignore_uas.conf
中创建一个名为/etc/modprobe.d
的文件 目录包含以下*
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设备。
答案 1 :(得分:0)
作为解决方法,在使用虚拟机时,您可以在主机上共享该文件夹,方法是在设置&gt;选项面板&gt;共享文件夹中添加该文件夹。考虑到访客和主机之间的额外通信层,速度相当慢,但至少您将获得对驱动器的访问权限。