You are not logged in.

#1 2016-04-18 08:27:35

i716
Member
From: Yokohama, Japan
Registered: 2016-04-18
Posts: 70

[SOLVED] External USB 3.0 HDD not recognized

Hello everybody, I have a rather strange issue to which I am not able to find a satisfying solution.

I set up Arch next to Windows 7 (dualboot), with the Arch system inside an encrypted LVM. Everythings's fine that far.

Now, when I try to connect an external USB 3.0 HDD  (a Lacie rugged 1TB if that matters), with a USB 3.0 cable to a USB 3.0 port, it get's recognized with the lsusb command. But I am unable to mount it and it also doesn't show up with lsblk.
If I however connect it to a USB 2.0 port, it works fine. Same goes for other USB storage media connected to USB 3.0, it works. The previously mentioned HDD can also be connected to a USB 3.0 port in Windows 7, which I'm running on the same machine.
And if I wait about 10 minutes, the HDD eventually even gets recognized under Arch on a USB 3.0 port.


This is the output from dmesg that I get after plugging it into a USB 3.0 port:

[ 2963.056982] scsi host10: uas
[ 2963.057441] scsi 10:0:0:0: Direct-Access     LaCie    Rugged FW USB3   051E PQ: 0 ANSI: 6
[ 2963.106538] sd 10:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[ 2963.106855] sd 10:0:0:0: [sdb] Write Protect is off
[ 2963.106858] sd 10:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 2963.107018] sd 10:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2994.047191] sd 10:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: IN 
[ 2994.047202] sd 10:0:0:0: tag#0 CDB: opcode=0xa3, sa=0xc a3 0c 01 12 00 00 00 00 02 00 00 00
[ 2994.047377] scsi host10: uas_eh_bus_reset_handler start
[ 2994.154201] usb 4-1: reset SuperSpeed USB device number 6 using xhci_hcd
[ 2994.168900] scsi host10: uas_eh_bus_reset_handler success

This is the output from lsusb:

Bus 002 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 1a81:2004 Holtek Semiconductor, Inc. 
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 059f:1061 LaCie, Ltd 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

And here is the output of lsblk:

NAME            MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda               8:0    0 931,5G  0 disk  
├─sda1            8:1    0   100M  0 part  /boot
├─sda2            8:2    0   128M  0 part  
├─sda3            8:3    0 492,3G  0 part  
└─sda4            8:4    0   439G  0 part  
  └─main        254:0    0   439G  0 crypt 
    ├─main-swap 254:1    0     8G  0 lvm   [SWAP]
    └─main-root 254:2    0   431G  0 lvm   /
sr0              11:0    1  1024M  0 rom   

Any ideas on this issue? It can't be an hardware issue, as the drive works flawlessly under Windows 7 and, after a couple of minutes, eventually under Arch as well. I also can't blame it on Arch, as another storage device, a Lacie Rugged Key, works just after plugging it in.
I am looking for a solution since this morning and have tried adding the line

usb-storage.delay_use=5

to the kernel, but to no avail.

Last edited by i716 (2016-04-18 11:43:17)

Offline

#2 2016-04-18 10:22:16

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] External USB 3.0 HDD not recognized

That is most probably a driver problem. You should try the -lts kernel and see if it works there. You can also try to disable uas[1] for that disk and see if it works.

After you have done these tests you should report the problem upstream[2].

[1] https://bbs.archlinux.org/viewtopic.php … 2#p1521102
[2] https://bugzilla.kernel.org/


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2016-04-18 10:40:42

i716
Member
From: Yokohama, Japan
Registered: 2016-04-18
Posts: 70

Re: [SOLVED] External USB 3.0 HDD not recognized

Hello, and thanks for the quick reply. I will have a look into disabling uas. I just wanted to paste the output of dmesg after the drive eventually automounted after being plugged into the USB 3.0 port for about 15 minutes.
As you can see, it gets recognized properly and is also accessible. Copying files to it is rather slow though. I get a throughput of around 100MB/s when trying to copy 100GB of data to it.

 [ 1696.714815] scsi host9: uas_eh_bus_reset_handler success
[ 1727.632800] sd 9:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: IN 
[ 1727.632803] sd 9:0:0:0: tag#0 CDB: opcode=0xa3, sa=0xc a3 0c 01 41 00 00 00 00 02 00 00 00
[ 1727.632903] scsi host9: uas_eh_bus_reset_handler start
[ 1727.739779] usb 4-2: reset SuperSpeed USB device number 4 using xhci_hcd
[ 1727.754338] scsi host9: uas_eh_bus_reset_handler success
[ 1758.620107] sd 9:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: IN 
[ 1758.620111] sd 9:0:0:0: tag#0 CDB: opcode=0xa3, sa=0xc a3 0c 01 41 00 00 00 00 02 00 00 00
[ 1758.620211] scsi host9: uas_eh_bus_reset_handler start
[ 1758.727081] usb 4-2: reset SuperSpeed USB device number 4 using xhci_hcd
[ 1758.741360] scsi host9: uas_eh_bus_reset_handler success
[ 1759.087188]  sdb: sdb1

Just to show that none of the devices is drawing excessive current, I'll paste the output of

usb-devices |grep mA
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
C:  #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
C:  #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=98mA
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=896mA

Which suggests that the device is now connected to a USB 3.0 port, as it draws 896mA.

lsusb

yields the following:

Bus 002 Device 003: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 1a81:2004 Holtek Semiconductor, Inc. 
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 059f:1061 LaCie, Ltd 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So, let's have a look at Bus 004 Device 004:

lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
    |__ Port 2: Dev 4, If 0, Class=Mass Storage, Driver=uas, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 5: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 5: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
 

As you can see, it is using the uas driver.

Last edited by i716 (2016-04-18 11:04:44)

Offline

#4 2016-04-18 11:26:54

i716
Member
From: Yokohama, Japan
Registered: 2016-04-18
Posts: 70

Re: [SOLVED] External USB 3.0 HDD not recognized

Solved.

Disabling uas did the trick!

So here's what I did:

sudo touch /etc/modprobe.d/usb-storage.conf
sudo nano /etc/modprobe.d/usb-storage.conf

Put

options usb-storage quirks=vid:pid:u

into that file. In my case it was

options usb-storage quirks=059f:1061:u

But you will have to use the vendor and product ID that you get from the lsusb output.

Then don't forget to run

sudo mkinitcpio -p linux

The device was automounted after reboot and is fully accessible. Thanks to ROOKIE for this great advice!
Bug reported as Bug 116641 on 2016-04-18 11:34:56 UTC  (2016-04-18 20:34:56 JST)

Last edited by i716 (2016-04-18 11:40:17)

Offline

#5 2016-04-19 11:17:15

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] External USB 3.0 HDD not recognized

It's good that you took the time to report the bug upstream but you should have included in the bug report all the information you have and the things you have tried.

Just leaving a link there and tell people to go look somewhere else for the important information is most probably going to get that bug report ignored/dismissed. From my limited experience, I'd say the kernel devs are nice helpful people, but you need to show interest and do your part in getting a problem solved.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB