Skip to content

Paper note

USB storage resets: recovery is not a root-cause diagnosis

Published 2026-10-11 · Updated 2026-11-07

A UAS abort or USB reset identifies a recovery action, not the failed component. Pinned Linux code, a historical incident and SMART documentation separate transport symptoms, compatibility quirks and disk-health evidence.

On this page9 sections
Question
What does a USB storage recovery message establish, and what evidence is still needed before blaming a disk, bridge, cable, power supply or host?
Pinned implementation
Linux v6.12, commit adc218676eef25575469234709c2d87185ca223a. This is a reproducible snapshot, not the latest-kernel label.
Unit of the tally
One UNUSUAL_DEV entry in unusual_uas.h, including its device-revision range. An entry is not one incident, one physical disk or one unique bridge design.
Correction
The previous lead over-attributed resets to the host-to-bridge path and overstated that every timeout resets the enclosure. Failed SMART queries were also attributed too narrowly. These claims are corrected here.

Read interface fields, not a device label

Selected hexadecimal descriptor values. Class, command-set subclass and transport are different fields; inspect the current alternate setting, not merely all advertised settings.

Read interface fields, not a device label
Interface fieldHex valueMeaningSource
bInterfaceClass08hMass Storage interface classUSB-IF class codes
bInterfaceSubClass06hSCSI transparent command setUSB-IF Overview 1.4
bInterfaceProtocol50hBulk-Only Transport (BOT)USB-IF Overview 1.4
bInterfaceProtocol62hUSB Attached SCSI (UAS)USB-IF Overview 1.4

Separate observation from diagnosis

Linux v6.12 source and USB error documentation. These are interpretation boundaries, not probabilities of failure.

Separate observation from diagnosis
ObservationWhat is establishedWhat remains unprovenSource
uas_eh_abort_handlerThe UAS abort callback ran for the command; this implementation cleans up references and returns FAILED.Which component caused the delay; whether a later USB reset was reached or succeeded.uas.c (Linux)
A USB reset messageRecovery reached a device-reset action. Check the subsequent result and surrounding errors.That the bridge is defective, the disk is healthy, or an uncertain write was never executed.SCSI error handling (Linux v6.12)
-EPROTO in a USB transferA USB transfer error was reported. The documented possibilities include protocol trouble, lack of response and an unspecified USB error.A unique diagnosis of cable, bridge, controller or firmware; the controller may not distinguish these cases.USB error codes (Linux v6.12)
SMART data unavailable through USBThe requested health evidence was not obtained through this command path.That SMART attributes are zero, the drive passed a health check, or the bridge alone caused the failure.smartctl(8) manual

Read the BOT status before drawing a conclusion

USB-IF Bulk-Only Transport revision 1.0. Interpret the status only after checking CSW validity and meaningfulness; Linux compatibility exceptions are discussed below.

Read the BOT status before drawing a conclusion
CSW statusMeaningInterpretation boundarySource
0x00Command passedSuccess concerns this command's contract, not a general disk-health verdict.USB-IF BOT 1.0
0x01Command failedKeep the command error distinct from a transport phase error.USB-IF BOT 1.0
0x02Phase errorReset recovery is required; ignore the residue field.USB-IF BOT 1.0

Compatibility rules are not failure statistics

Generated from Linux v6.12 unusual_uas.h. Each percentage uses all entries in this one file as its denominator; flags overlap. Match rules include VID, PID and device revision, not just a product name.

Compatibility rules are not failure statistics
FlagEntriesShare (%)Effect or boundarySource
US_FL_NO_REPORT_OPCODES838.1Suppress REPORT SUPPORTED OPERATION CODES; this is not the same as disabling UAS.Kernel parameters: usb-storage.quirks
US_FL_IGNORE_UAS733.3Do not bind the uas driver. This is a driver-selection workaround, not proof that the underlying defect is repaired.Kernel parameters: usb-storage.quirks
US_FL_NO_ATA_1X419.0Disallow ATA(12) and ATA(16) pass-through commands on UAS. Ordinary block I/O and SMART visibility are different capabilities.Kernel parameters: usb-storage.quirks
US_FL_NO_SAME29.5Do not use WRITE SAME.Kernel parameters: usb-storage.quirks
US_FL_BROKEN_FUA29.5The UAS configuration marks FUA as broken for matching devices. Do not infer durable-write behavior merely from the UAS label.uas.c (Linux)
US_FL_NO_REPORT_LUNS14.8Suppress REPORT LUNS; command-specific compatibility rule.Kernel parameters: usb-storage.quirks
US_FL_IGNORE_RESIDUE14.8An entry carries this flag; presence in the table alone does not establish its effect in every transport.unusual_uas.h (Linux)
US_FL_ALWAYS_SYNC14.8The UAS configuration skips cache mode-page queries and assumes write caching is enabled. Inspect code as well as the parameter guide.uas.c (Linux)

A successful read can coexist with resets

Two observations from the same 2015 linux-usb correspondence, not a fleet sample or a controlled comparison. Throughput and reset count are the reporter's values.

A successful read can coexist with resets
ConfigurationReported observationBounded interpretationSource
UAS, ASMedia-labelled enclosureRead errors, abort callbacks, then a USB reset and Not Ready / Medium not present sense data.The recovery sequence is visible. The maintainer suggested cable and power checks; the report does not isolate the defective component.linux-usb ASM1153E thread, 2015
Same disk after UAS was disabledA full 1.5 TB read at about 125 MB/s, while the reporter counted 953 USB resets.Completion under a different driver did not eliminate the transport symptoms. It is not a disk-health certificate.linux-usb ASM1153E thread, 2015

The pinned tally covers 21 entries, not devices in use. Download the generated audit JSON for match ranges, overlapping flag counts, source URLs and SHA-256 hashes.

What the evidence supports

Read the recovery path, not just a comment. In the pinned uas.c, uas_eh_abort_handler does not send a device abort and returns FAILED after releasing command references. It does not itself call usb_reset_device. The separate uas_eh_device_reset_handler first obtains a reset lock, clears pending work and then attempts the USB reset. Lock acquisition or reset can fail. These are facts about this implementation, not restrictions inherent in the UAS protocol. [uasc]

Why 'every timeout resets the enclosure' is too strong. Linux's SCSI layer governs escalation. scsi_timeout includes a completion-state race check; its generic driver timeout hooks are conditional and are not registered by the v6.12 UAS host template. The recovery code also checks state and can offline unrecovered devices. An abort log is therefore not evidence that a successful reset followed. Read the actual sequence for the running kernel. [scsi] [uasc]

A quirk can change observability without disabling storage. The NO_ATA_1X flag blocks two ATA pass-through forms, whereas IGNORE_UAS prevents UAS binding. These are different interventions. The Apricorn rule in this pinned table is limited to bcdDevice 0x0128, illustrating why a VID:PID name alone is not the complete built-in match. Do not interpret every missing SMART field as a measured zero, and do not treat a work-around as a diagnosis. [kparam] [uas]

SMART is a separate evidence channel. The smartctl 7.5 manual says an unknown SMART RETURN STATUS can result from limitations or bugs between disk and operating system; smartctl then warns and checks available prefailure attributes against thresholds. That fallback is a different observation, not the missing drive-reported result. Unsupported JMicron options or an incorrect port can themselves produce I/O errors or a disconnect. Use supported detection and preserve the exact warning instead of guessing pass-through parameters. [sm8]

Identify the active transport first. The pinned Linux usb-storage driver supports Control/Bulk, Control/Bulk/Interrupt and Bulk-Only paths, while command-set selection is separate. Its driver name is therefore insufficient to identify BOT. Record the selected interface protocol and alternate setting alongside the driver and device revision. [usb-select]

BOT status has a framing contract. A valid CSW has 13 bytes, the prescribed signature and a tag matching the CBW. For passed or failed commands, meaningful status also requires residue no greater than the requested length; phase-error status is handled separately. Invalid status wrappers require reset recovery, whereas nonmeaningful wrappers permit it. For command-passed or command-failed status, dCSWDataResidue subtracts relevant bytes sent for Data-In, or bytes processed for Data-Out, from dCBWDataTransferLength. Bus transfers may include padding or bytes the device does not process. The host ignores residue for phase-error status. A STALL must be interpreted in its transfer phase, not automatically diagnosed as media failure. BOT Reset Recovery first issues the class-specific Bulk-Only Mass Storage Reset, then clears HALT on Bulk-In, then Bulk-Out. It is not the same operation as a USB device reset. The class reset alone preserves endpoint STALL conditions and data toggles. [bot]

Driver compatibility is a separate layer. In Linux v6.12, usb_stor_Bulk_transport accepts certain nonstandard signatures and applies tag or residue exceptions. Command failure requests sense through usb_stor_invoke_transport; a phase error becomes a transport error. These source paths distinguish the outcomes without proving how a particular enclosure behaved. [bot-linux]

Completion still needs the command's persistence contract. Linux documents that volatile write-back caches can acknowledge I/O before nonvolatile storage is updated. Consequently, zero BOT residue and a successful ordinary write are not by themselves proof of power-loss durability. Check the command, cache policy and end-to-end flush/FUA handling; a correctly completed persistence operation has a different contract. [cache-control]

Research context, not a USB risk estimate. Gunawi et al.'s FAST18 study collected 101 remembered incident reports from 12 institutions, covering 2000-2017. Section 2 explains that one report can represent multiple occurrences and that hardware-level logs were unavailable for a large-scale log analysis. Sections 3.1-3.4 distinguish internal and external causes and show that retries or error correction can turn other faults into slowdowns. Our diagnostic inference is that the component reporting delay need not be the origin. This selected datacenter collection cannot estimate the probability that a USB reset means a bad cable or disk. [fail-slow]

A useful diagnostic record preserves boundaries. Record the kernel and driver versions, USB topology, VID:PID and device revision, disk identity, command type, first error, recovery result and exact SMART warnings. Protect important data before changing the setup. Controlled changes to a supported cable, power path or enclosure can help isolate a hypothesis, but changing several variables at once weakens the inference. Avoid destructive write tests on a drive holding the only copy. A timeout still leaves write completion uncertain. [usb-errors] [sm8]

An advertised UAS alternate setting does not prove that UAS is active. Linux v6.12 checks endpoint descriptors, compatibility flags and host-controller capabilities before attempting to select that setting; selection and later setup can still fail. Streams support is checked for SuperSpeed-or-faster operation, not imposed on all UAS connections. Record the current alternate setting and bound driver. Interface codes describe the command path, not media health or durable write completion. [uas-detect] [uasc]

BOT and UAS are not the entire historical class. USB-IF Overview 1.4 also assigns protocol 00h and 01h to CBI with and without a completion interrupt, respectively. It restricts CBI to full-speed floppy drives and discourages new designs. Command-set subclass codes are not medium-type labels; a SCSI-transparent interface does not establish which physical medium or filesystem is behind it. [usb-overview]

Related: Bulk-Only Transport, UASP definition, USB mass storage, uncertain write completion, the SMART failure-signal note, SCSI sense and kernel log signatures and SATA and SAS link failure signatures.

Method

Source audit, not a hardware experiment. We inspected Linux v6.12 commit adc218676eef25575469234709c2d87185ca223a, smartmontools 7.5 commit f276b249fdc84019403491303479485030ac7c80, the original 2015 linux-usb correspondence and sections 2 and 3 of the FAST 2018 Fail-Slow at Scale paper on 2026-10-15. The downloadable JSON is generated from the pinned unusual_uas.h: one observation per UNUSUAL_DEV macro, matching VID, PID and bcdDevice range; each flag is counted at most once per entry. Percentages divide flag-entry counts by the number of entries in that file. Source hashes and code-shape assertions allow rechecking the tally and the reviewed recovery locations. They do not execute the kernel or validate a physical device. The 2026-10-19 extension compares USB-IF Bulk-Only Transport revision 1.0, sections 3.3-3.5, 5 and 6, with transport selection, CSW handling and write-back cache documentation at the same Linux commit. It adds protocol interpretation, not measurements or changes to the original UAS tally. The 2026-10-26 clarification uses USB-IF Overview 1.4 sections 1.1-3, the USB-IF class-code registry and the pinned Linux UAS detection/setup path. Descriptor meanings are reference facts; no device enumeration or transport benchmark was performed. The 2026-11-05 review also distinguishes the class reset from the ordered BOT Reset Recovery procedure in sections 3.1 and 5.3.4. The 2026-11-07 review distinguishes relevant Data-In bytes from processed Data-Out bytes in BOT sections 5.2 and 6.7.

Limits

This is a versioned Linux example, not a claim about every current kernel, operating system or UAS implementation. Quirk entries are selected compatibility rules, not a random sample of devices or failures; flags overlap, and this file does not contain every USB-storage quirk or detection rule. The old unpinned master tally has been replaced, so changed counts must not be interpreted as a reliability trend. Historical logs are one reporter's observations, not an independently reproduced experiment. No USB failure rate, vendor ranking, media-health certificate or probability of a particular cause follows from these sources. The FAST18 study is broader datacenter context, not USB-specific evidence.

Sources

  1. 01Linux v6.12: UAS abort, reset, device configuration and host template · accessed 2026-10-15
  2. 02Linux v6.12: SCSI timeout and error-recovery control flow · accessed 2026-10-15
  3. 03Linux v6.12: USB error codes and controller ambiguity · accessed 2026-10-15
  4. 04Linux v6.12: unusual_uas.h, the exact quirk-tally population · accessed 2026-10-15
  5. 05Linux v6.12: usb-storage.quirks parameter flags · accessed 2026-10-15
  6. 06smartctl 7.5 manual: device types and SMART health-status fallback · accessed 2026-10-15
  7. 07Hans de Goede and reporter: ASM1153E USB storage correspondence, 16 November 2015 · accessed 2026-10-15
  8. 08Gunawi et al. (FAST 2018), Fail-Slow at Scale, sections 2 and 3.1-3.4, pp. 1-4 · accessed 2026-10-15
  9. 09USB-IF: Mass Storage Bulk-Only Transport revision 1.0, sections 3.3-3.5, 5 and 6 · accessed 2026-11-07
  10. 10Linux v6.12: Bulk-Only status, residue quirks and automatic sense handling · accessed 2026-10-19
  11. 11Linux v6.12: separate USB storage transport and command-set selection · accessed 2026-10-19
  12. 12Linux v6.12: explicit volatile write-back cache control · accessed 2026-10-19
  13. 13USB-IF: Mass Storage Class Specification Overview revision 1.4, sections 1.1, 2 and 3 · accessed 2026-10-26
  14. 14USB-IF: Defined Class Codes, Mass Storage class 08h (interface descriptors) · accessed 2026-10-26
  15. 15Linux v6.12: UAS alternate-setting, endpoint and host-capability checks · accessed 2026-10-26

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. USB storage resets: recovery is not a root-cause diagnosis. Hesela. 2026-11-07. https://hesela.com/analyses/usb-sata-bridge-uas-failure-signatures/