2017-10-16 154 views
0

我使用vmware与ubuntu 14.04 LTS。 当我尝试连接我的希捷M3时,虚拟机实际上会识别它,但它不会被挂载,也不会被系统识别。挖一点点后,貌似该设备确实连接作为命令的lsusb显示:vmware ubuntu:错误usb 4-1:统计urb:状态-32当连接外部驱动器

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错误。

有没有人有任何想法,为什么会发生这种情况?在网上找不到任何相关内容。

回答

0

usb 4-1是USB端口号,stat urb : status -32意味着URBû SB ř eQUEST的b锁)报告误差-32(破管)比照http://www.makelinux.net/ldd3/chp-13-sect-3URBhttp://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的一个解决方案是在https://bbs.archlinux.org/viewtopic.php?id=183190Da_Coynul的答案,它通过配置usb-storage模块将'uas'模块'黑'列入特定SCSI驱动器:

我能够通过告诉 USB存储模块忽略设备的使用情况,让我的外部驱动器再次工作。这里是如何做到 它:

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

options usb-storage quirks=Vendor_ID:Product_ID:u 

*(替换您的实际VENDOR_ID从PRODUCT_ID获得lsusb -v命令)。

接下来,重新生成inital的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

+0

感谢您的信息。尽管我没有发现任何有用的解决方案来解决我的问题......至少现在我知道发生了什么事情。 – darkpirate

0

作为一种解决办法,采用了虚拟机时,可以共享的文件夹在主机上,通过设置在其添加>选项面板>共享文件夹。考虑客户和主机之间的通信层时,速度要慢很多,但至少您可以访问驱动器。