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.
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
Limitations
- Block I/O, health telemetry and write-durability guarantees must be checked separately.
Citations
- Linux v6.12: UAS driver implementation
- Linux v6.12: usb-storage.quirks
- smartctl 7.5: pass-through and health status
- Linux v6.12: version-bounded UAS quirks
- Linux v6.12: separate USB storage transport and command-set selection
- USB-IF: Mass Storage Class Specification Overview revision 1.4, sections 1.1, 2 and 3
- USB-IF: Defined Class Codes, Mass Storage class 08h (interface descriptors)
- Linux v6.12: UAS alternate-setting, endpoint and host-capability checks