📖 ~1 min read
Table of contents
Symptom & Impact
System reports no space left on device; services fail to write temp files and logs.
Environment & Reproduction
Ubuntu 18.04 VMs with small root volumes and growing logs, caches, or container layers.
Root Cause Analysis
Unbounded growth in /var/log, apt cache, snaps, or application data exhausts root partition.
Quick Triage
Use df -h and sudo du -xhd1 / to find largest directories quickly.
Step-by-Step Diagnosis
Inspect /var/log, /var/lib/snapd, /var/cache/apt, and orphaned files held by deleted processes using lsof +L1.

Solution – Primary Fix
Run apt clean, journalctl vacuum, remove unused snaps revisions, and rotate/compress oversized logs.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Extend disk/LVM volume or relocate high-growth paths like Docker data to a dedicated partition.
Verification & Acceptance Criteria
At least 15-20 percent free space is restored and critical services recover normal operation.
Rollback Plan
Restore purged data from backups when retention requirements were impacted.
Prevention & Hardening
Set filesystem usage alerts, enforce log retention policies, and schedule periodic cleanup tasks.
Related Errors & Cross-Refs
No space left on device, tmp write failures, and package unpack errors.
Related tutorial: View the step-by-step tutorial for Ubuntu 18.04 LTS.
View all Ubuntu 18.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
man du, man df, Ubuntu logrotate docs, and apt cache management.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.