You deleted a log, yet the next install still runs out of space. Check where the write lands and whether a process still has the file open.
Find the filesystem that rejected the write
Connect over SSH. Replace /tmp in p with the actual destination directory. Read Available and Mounted on. Clearing a tmpfs at /tmp frees no flash. Check /overlay separately if present. The merged root can include read-only firmware.
p=/tmp
df -k / "$p"
if [ -d /overlay ]; then df -k /overlay; fi
du --help
Check for permission errors. du counts what it can reach. If supported, use du -skx to stay on one filesystem and repeat inside large directories. Like df, duf shows mounts. dust and gdu explore directories. None is required here.
du -sk "$p"
OpenWrt 25.12.6 x86/64 · apk policy dust duf gdu · Our feed listed no candidates. Check your local index.
Where did the space go?
On an OpenWrt 25.12.6 x86/64 VM we used a separate 4 MiB tmpfs. After unlinking an open file, du showed 0 while df still counted 1024 KiB. Usage fell to zero when the last descriptor closed. This test did not fill flash.

Identify the service holding the file
Use ps and replace 123 with the service PID. Look for (deleted) and match the path to the mount. Full lsof also supports lsof +L1. If nothing matches, check permissions, directories hidden by mounts and filesystem overhead.
ps
pid=123
ls -l "/proc/$pid/fd"
Ask the service to reopen its logs as documented, or restart just that service during maintenance. Avoid deleting overlay or killing unknown processes. Restore temporary settings, check df on the same path and retry the original write. Read it back. If space is still held, check other processes.
How to identify SquashFS, the writable layer and /rom on OpenWrt
Comments