usb-mass-storage · shipping

USB mass storage

USB mass storage is a USB interface class for storage access through command transports including Bulk-Only Transport and USB Attached SCSI.

Related Observatory article: Read on hesela.com

USB assigns Mass Storage class 08h to interface descriptors. Within that class, bInterfaceSubClass identifies the command set (06h: SCSI transparent), while bInterfaceProtocol identifies the transport (50h: BOT; 62h: UAS). These hexadecimal codes do not identify the medium or filesystem. USB-IF Overview 1.4 also lists 00h/01h CBI transports, restricted to full-speed floppy drives and discouraged for new designs. [9] [8]

The device class, command set and transport describe different layers. Linux v6.12 selects the command set separately from Control/Bulk, Control/Bulk/Interrupt or Bulk-Only Transport. The usb-storage driver name alone therefore does not establish BOT. UAS has a separate driver. [7] [2]

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. Record the current alternate setting and bound driver. [10] [2]

Linux compatibility flags can suppress selected commands or prevent UAS binding; a matching built-in rule can also depend on the USB device-revision range. Successful block reads do not imply that ATA SMART pass-through works. smartctl 7.5 documents that an unavailable SMART RETURN STATUS may reflect limitations or bugs in intermediate layers; its threshold-based fallback is not the missing drive-reported result. Preserve missing telemetry as unknown, not zero. [3] [6] [5]

Relations

related
UASP, Consumer SSD, SD Express, Bulk-Only Transport, SCSI / ATA Translation (SAT)

Limitations

  • Block I/O, health telemetry and write-durability guarantees must be checked separately.

Citations

  1. Linux v6.12: UAS driver implementation (accessed 2026-10-15)
  2. Linux v6.12: usb-storage.quirks (accessed 2026-10-15)
  3. smartctl 7.5: pass-through and health status (accessed 2026-10-15)
  4. Linux v6.12: version-bounded UAS quirks (accessed 2026-10-15)
  5. Linux v6.12: separate USB storage transport and command-set selection (accessed 2026-10-19)
  6. USB-IF: Mass Storage Class Specification Overview revision 1.4, sections 1.1, 2 and 3 (accessed 2026-10-26)
  7. USB-IF: Defined Class Codes, Mass Storage class 08h (interface descriptors) (accessed 2026-10-26)
  8. Linux v6.12: UAS alternate-setting, endpoint and host-capability checks (accessed 2026-10-26)

Further reading

  1. USB mass storage (accessed 2026-03-26)
  2. USB storage resets: recovery is not a root-cause diagnosis (accessed 2026-10-15)

JSON: /data/terms/usb-mass-storage.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. USB mass storage. Hesela. 2026-11-05. https://hesela.dev/terms/usb-mass-storage/