Storage · Physical Storage Media › SSD
TRIM
Cheat sheet · https://pcornel.dk/topic.php?topic=3889
Answer
TRIM (UNMAP for SCSI, Deallocate for NVMe) tells an SSD which blocks the file system no longer uses, so garbage collection can reclaim them. On Linux run fstrim regularly; Windows does it automatically.
Remember
- TRIM/UNMAP/Deallocate.
- Run fstrim regularly on Linux.
- Thin storage reclaims space with it.
First checks
lsblk -D— discard supportfstrim -av— trim mounted filesystemssystemctl status fstrim.timer— periodic trim
Verify in this order
delete → discard → SSD/thin pool frees blocks
Where it usually breaks
First mismatch in media/firmware → device controller → interface/link → host driver → block device → upper storage layer; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3889