Troubleshooting Full Disk Issues on Linux Servers
Audience: System Administrators, Home Lab Users, DevOps
Last Updated: July 2025
Author: LeValle Bradix
Symptoms
You may encounter one or more of the following:
No space left on deviceerrors- Failed systemd services or application crashes
- Inability to write files or restart processes
- Cron jobs or backup tasks failing
- System becomes unresponsive or fails to boot
Immediate Checks
-
Check overall disk usage:
-
Find large directories:
-
Check inside
/var(commonly problematic): -
Look for large log files:
Safe Cleanup Actions
Always verify before deleting. Use
ls -lhto inspect.
Rotate or delete logs:
Clean apt/yum cache:
- Debian/Ubuntu:
- RHEL/Fedora:
Clear thumbnail or temp files (desktop systems):
Root Cause Analysis
- Did a service generate excessive logs? (
/var/log/syslog,journald) - Did backups or cron jobs write to the wrong location?
- Are containers, VMs, or snapshots eating space?
- Was logrotate or a cleanup script misconfigured?
Preventive Measures
-
Enable log rotation:
-
Schedule a monthly disk usage audit via cron:
-
Monitor disk usage with tools like:
ncduglancesnetdataorgrafana
When to Escalate or Reboot
- Root (
/) partition is full and blocking critical services - You can't delete anything safely
- Disk hardware is failing (use
smartctl,dmesg)
Quick Fix Checklist
-
df -hrun, issue confirmed - Large folders identified via
du -sh - Logs or cache cleaned
- Root cause documented
- Prevention in place
Pro Tip: Keep /var/log, /tmp, and /home on separate partitions when possible to isolate failures.