Linux hardware diagnostics

Does discard reach an SSD inside your Linux USB enclosure?

On this page
  1. Resolve the mount to a device
  2. Check the operation separately
  3. Compare under safe conditions
  4. Try it
  5. Sources

Check discard on the mounted path through the enclosure because the bare drive’s feature list does not describe the whole connection.

Linux hardware diagnostics decision guide
  1. Mounted pathMap the filesystem to a block device
  2. BridgeInspect exposed discard limits
  3. OperationRead the result for the mounted filesystem

Resolve the mount to a device

Use findmnt to identify the source for the filesystem you intend to check. Then use lsblk --discard and inspect maximum discard length for that path. A zero value on the exposed device is a clue to investigate the bridge or another storage layer.

Check the operation separately

fstrim accepts a mount point and asks the filesystem to discard unused blocks. Its verbose count is the range passed down by that operation. It is not a physical erase measurement.

Compare under safe conditions

Prefer the regular scheduled trim configuration for the installed distribution. If the same drive is available on a supported native connection, compare its advertised discard capability there without moving your only copy of important data.

Try it

Sources

  1. util-linux fstrim manual
  2. util-linux lsblk manual
  3. util-linux findmnt manual

Source review . Research and writing prepared with AI assistance.

Choose a part

Make it yours

Your hardware studio.

Saved in this browser. Your parts stay the same.