ITF+ Virtual Machine Lab Series — Lesson 7: Storage & File System Troubleshooting
Fix two of the most common real-world problems: Disk Full and Permission Denied.
This lab teaches proof-first troubleshooting: measure → locate → fix → verify.
Fast Triage (read the symptom → pick the right test)
Lab flow (click to reveal)
Run:
- Focus on the line for / (root filesystem).
- 90%+ usage can cause slow updates, install failures, and weird app behavior.
Write down your root usage:
- / Used%: __________
Find large folders in your home directory:
Want to check downloads specifically?
Create a 1GB file (safe to delete later):
Now re-check disk usage:
These are safe, common cleanup commands:
If you created the big file, delete it:
Verify usage improved:
In Linux, files have:
- Owner (user)
- Group
- Permissions (r/w/x) for owner, group, others
Try:
Create a folder owned by root inside your home (safe, reversible):
Now try to write a file (this should fail):
You should see Permission denied. Next step fixes it the right way.
Best fix: give the folder back to your user (replace USER with your username):
Now try again:
Practical: Ticket Triage (Disk vs Permissions)
Before / After Results (fill this in)
| Check | Before | After |
|---|---|---|
| / Used% (from df) | __________ | __________ |
| Largest folder found (from du) | __________ | __________ |
| Cleanup actions (apt clean, rm, etc.) | __________ | |
| Permission fix command | __________ | |
Mini Quiz (10 Questions)
1) Which command shows disk usage by filesystem (including /)?
2) Which command helps you find which folder is taking the most space?
3) “No space left on device” most commonly means:
4) Which command is a safe way to clear cached package files?
5) “Permission denied” usually means:
6) Which command shows file permissions and ownership in a directory?
7) Which command changes file ownership?
8) chmod primarily changes:
9) If disk is 95% full, updates and installs may fail because:
10) Best proof that you fixed a disk-full problem?
Next Lab (Coming Soon): Lesson 8 — Processes & Services Basics (systemctl + logs)
🔒 Locked / Not published yetHook: If a service won’t start (or the system boots “broken”), you need to inspect services and logs — that’s Lesson 8.
- df -h → disk usage by filesystem
- du -h –max-depth=1 ~ → largest folders in home
- sudo apt clean → clear apt cache
- sudo apt autoremove -y → remove unused packages
- ls -la → permissions + ownership
- chown → change owner
- chmod → change permissions
- ✅ Large downloads in ~/Downloads
- ✅ Big temp files in your home folder
- ✅ apt cache (via sudo apt clean)
- ⚠️ Avoid deleting random folders in /
- Storage concepts: partitions, disk usage, free space
- File system: directories, files, permissions
- Troubleshooting: measure → locate → fix → verify
If your VM disk is too small, even normal updates can fill it. Consider increasing the VM storage size in UTM for long-term labs.