Disk & Filesystem Management (Du/Df/Lsblk/Fstrim)
Stop letting your SSD rot from lack of maintenance
đź§© The Challenge
Everyone just assumes their SSD is fast forever, but I spent two days chasing weird IO latency spikes only to realize my TRIM commands weren’t actually running. It’s a total nightmare when your drive starts choking on write amplification because the controller thinks those deleted blocks are still hot data.
đź’ˇ The Fix
Just hook up a periodic fstrim timer to handle the garbage collection automatically in the background. Your SSD will stop gasping for air, and your system will feel like you just installed a fresh OS.
systemctl enable --now fstrim.timer
⚙️ Why It Works
Setting this timer tells the kernel to periodically discard unused blocks, which gives the SSD’s firmware the heads-up it needs to erase data cleanly before new writes hit. Most modern distros should have this, but you’d be shocked how often it’s disabled on older migrations.
🚀 Pro-Tip: Run fstrim -av manually if your drive feels sluggish after a massive file purge, don’t wait for the timer to tick.
Linux Tips & Tricks | © ngelinux.com | 11/22/2026
