2017-10-16 148 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

作爲一種解決辦法,採用了虛擬機時,可以共享的文件夾在主機上,通過設置在其添加>選項面板>共享文件夾。考慮客戶和主機之間的通信層時,速度要慢很多,但至少您可以訪問驅動器。