Stop guessing if your SSD is actually trimming blocks
Disk & Filesystem Management (Du/Df/Lsblk/Fstrim)
Stop guessing if your SSD is actually trimming blocks
🧩 The Challenge
You spent all afternoon clearing out terabytes of old database dumps, yet your storage dashboard is still screaming that the partition is full. It is infuriating when you know you deleted the files, but the hardware controller is just sitting there holding onto the old blocks like a hoarder.
💡 The Fix
Manually trigger a trim operation to tell the SSD controller that those blocks are finally up for grabs. This saves you from waiting for the system’s scheduled maintenance window if you are in a production crunch.
fstrim -av
⚙️ Why It Works
This utility walks the filesystem and sends discards to the underlying storage device for all blocks that are currently unused. It’s the fastest way to get your free space reporting back to reality after a massive delete operation.
🚀 Pro-Tip: Check your /etc/fstab to see if you have discard enabled on your mount options, but don’t count on it alone—manual trim is the only way to be 100% sure the drive heard you.
Linux Tips & Tricks | © ngelinux.com | 9/14/2026
