Does discard reach an SSD inside your Linux USB enclosure?
Check discard on the mounted path through the enclosure because the bare drive’s feature list does not describe the whole connection.
- Mounted pathMap the filesystem to a block device
- BridgeInspect exposed discard limits
- 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
Source review . Research and writing prepared with AI assistance.