Disk & Filesystem Management (Du/Df/Lsblk/Fstrim)
Stop your filesystems from lying about the space left on disk
đź§© The Challenge
Ever run a df check and see 20 percent free, but your app still throws “No space left on device” when it tries to write a log file? It’s infuriating because the OS is keeping a secret stash for root, and you’re the one hitting the wall.
đź’ˇ The Fix
Use tune2fs to claw back those reserved blocks that modern disks rarely actually need anymore. It gives you back the breathing room your app is currently screaming for.
sudo tune2fs -m 1 /dev/sda1
⚙️ Why It Works
By default, ext4 reserves 5 percent of the drive for root, which on a massive modern volume is a colossal amount of wasted space. Dropping that to 1 percent keeps enough space for the system to recover from a full disk while freeing up gigabytes of usable storage.
🚀 Pro-Tip: Check your current reserved count with tune2fs -l before you start carving it up.
Linux Tips & Tricks | © ngelinux.com | 11/29/2026
