2026-05-07
Freeing Root Disk Space in a Container -- Without using rm
2026-05-07 ~ 2026-10-15

The note is generated by GLM-5.1.

Problem

The root filesystem (/) was 100% full (50G overlay), causing apt install, dpkg, and other system operations to fail with “No space left on device”.

Key observation: /home is mounted on a separate disk (/dev/sdab1, 251G with 229G free), so deleting files in home does not free space on the root overlay.

Constraint: sudo rm is not allowed in this environment — it is deliberately excluded from the sudoers whitelist as a safety measure. We must free 42G of disk space using only whitelisted commands (unlink, systemctl, apt, dpkg, ln, etc.).