USB drive issue uas_eh_abort_handler 0 uas-tag
Problem
- An attached USB drive is not working as expected - not completing operations and slowing down the system.
- Logging is showing A LOT of errors. Reasonably confident the drive is fine.
- Errors mention
uas_eh_abort_handler 0 uas-tag
Specifics
- USB connected external device.
- Fedora 34 in this example.
- In example this is an m.2 argon raspberry pi case with an m.2 to USB3 converter/caddy attached with a male-male cable.
dmesg
is showing the following:
[ 1547.060681] usb 2-2: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 1547.075940] scsi host2: uas_eh_device_reset_handler success
[ 1547.076042] sd 2:0:0:0: [sdf] tag#11 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT cmd_age=26s
[ 1547.076050] sd 2:0:0:0: [sdf] tag#11 CDB: ATA command pass through(16) 85 06 20 00 00 00 00 00 00 00 00 00 00 00 e5 00
[ 1577.328870] sd 2:0:0:0: [sdf] tag#29 uas_eh_abort_handler 0 uas-tag 14 inflight: CMD IN
[ 1577.328884] sd 2:0:0:0: [sdf] tag#29 CDB: Read(10) 28 00 08 f1 98 e0 00 04 00 00
[ 1577.328986] sd 2:0:0:0: [sdf] tag#28 uas_eh_abort_handler 0 uas-tag 13 inflight: CMD
[ 1577.328993] sd 2:0:0:0: [sdf] tag#28 CDB: Read(10) 28 00 08 f1 94 e0 00 04 00 00
[ 1577.329000] sd 2:0:0:0: [sdf] tag#18 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
[ 1577.329004] sd 2:0:0:0: [sdf] tag#18 CDB: Read(10) 28 00 08 f1 a0 e0 00 00 08 00
[ 1577.329069] sd 2:0:0:0: [sdf] tag#9 uas_eh_abort_handler 0 uas-tag 24 inflight: CMD IN
[ 1577.329074] sd 2:0:0:0: [sdf] tag#9 CDB: Read(10) 28 00 08 f1 bc f0 00 03 b0 00
[ 1577.329149] sd 2:0:0:0: [sdf] tag#8 uas_eh_abort_handler 0 uas-tag 23 inflight: CMD IN
[ 1577.329153] sd 2:0:0:0: [sdf] tag#8 CDB: Read(10) 28 00 08 f1 b8 f0 00 04 00 00
[ 1577.329212] sd 2:0:0:0: [sdf] tag#7 uas_eh_abort_handler 0 uas-tag 22 inflight: CMD IN
[ 1577.329216] sd 2:0:0:0: [sdf] tag#7 CDB: Read(10) 28 00 08 f1 b4 f0 00 04 00 00
[ 1577.329280] sd 2:0:0:0: [sdf] tag#6 uas_eh_abort_handler 0 uas-tag 21 inflight: CMD IN
[ 1577.329284] sd 2:0:0:0: [sdf] tag#6 CDB: Read(10) 28 00 08 f1 b0 f0 00 04 00 00
[ 1577.329347] sd 2:0:0:0: [sdf] tag#5 uas_eh_abort_handler 0 uas-tag 20 inflight: CMD IN
[ 1577.329351] sd 2:0:0:0: [sdf] tag#5 CDB: Read(10) 28 00 08 f1 ac f0 00 04 00 00
[ 1577.329410] sd 2:0:0:0: [sdf] tag#4 uas_eh_abort_handler 0 uas-tag 19 inflight: CMD IN
[ 1577.329414] sd 2:0:0:0: [sdf] tag#4 CDB: Read(10) 28 00 08 f1 a8 f0 00 04 00 00
[ 1577.329471] sd 2:0:0:0: [sdf] tag#3 uas_eh_abort_handler 0 uas-tag 18 inflight: CMD IN
[ 1577.329475] sd 2:0:0:0: [sdf] tag#3 CDB: Read(10) 28 00 08 f1 a8 e8 00 00 08 00
[ 1577.329525] sd 2:0:0:0: [sdf] tag#2 uas_eh_abort_handler 0 uas-tag 17 inflight: CMD IN
[ 1577.329529] sd 2:0:0:0: [sdf] tag#2 CDB: Read(10) 28 00 08 f1 a4 e8 00 04 00 00
[ 1577.329576] sd 2:0:0:0: [sdf] tag#1 uas_eh_abort_handler 0 uas-tag 16 inflight: CMD IN
[ 1577.329580] sd 2:0:0:0: [sdf] tag#1 CDB: Read(10) 28 00 08 f1 a0 e8 00 04 00 00
[ 1577.329628] sd 2:0:0:0: [sdf] tag#0 uas_eh_abort_handler 0 uas-tag 15 inflight: CMD IN
[ 1577.329633] sd 2:0:0:0: [sdf] tag#0 CDB: Read(10) 28 00 08 f1 9c e0 00 04 00 00
[ 1630.895256] sd 2:0:0:0: [sdf] tag#10 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD
[ 1630.895264] sd 2:0:0:0: [sdf] tag#10 CDB: Synchronize Cache(10) 35 00 00 00 00 00 00 00 00 00
[ 1630.903210] scsi host2: uas_eh_device_reset_handler start
Solution
- The issue/problem here is that this USB storage device is using the
uas
driver. - Identify the device in question
lsusb
- Then add
options usb-storage quirks=174c:55aa:u
(where those numbers either side of the colon there are the USB ID with the:u
on the end) into something like/etc/modprobe.d/blacklist_uas.conf
- Reattach the device.
- Check for errors in logs.
Credit
Various sources but ODROID and StackExchange got me in the right direction.
Thank you for posting this! Having the exact same problem with a Rock Pi 3a, and this pointed me to the correct fix. Since I’m running Armbian, the easiest way to add this quirk was to put “extraargs=usb-storage.quirks=174c:55aa:u” into /boot/armbianEnv.txt