# Why your Rust host’s disk can stay full after you delete a log

Troubleshooting | Edition of 22 October 2026 | Rust Server Cupboard

Find out whether a running Linux process is holding deleted data and confirm that the game can save again.

## Measure the disk Rust actually writes to

You delete an old-looking Rust log and the file disappears, but the host still reports a full disk. Before moving backups or touching world files, find the filesystem that holds the save. On Linux, df -h followed by the actual save directory shows the filesystem for that path. Run the same check for the log directory and your backup destination. You may discover that freeing the backup drive would leave the game drive just as full.

Compare a directory total with the filesystem’s usage. On a GNU/Linux host, du -x -h --max-depth=1 followed by the affected mount point reports space under that directory without walking into other filesystems. Run a large directory walk when the game is quiet if you have room to wait. Use an account with enough access for the folders you intend to compare. A total that skips directories because of permission errors is incomplete.


## Look for a missing file that a process still has open

Removing a filename from a local Linux filesystem can leave its data in use. A running process may still have the file open and can carry on writing to it. Tools that walk directory names no longer see it, while the filesystem still counts the occupied blocks. A log deleted during a live game is one way this can happen.

Use lsof +L1 with enough access to see the relevant processes. Look for large regular files with zero links, then match the process and filesystem to the host you are working on. The same underlying file can appear in more than one row if several descriptors or processes hold it. Avoid totaling the displayed sizes as if every row took up separate space.

Imagine df shows the game filesystem nearly full while du misses the space you expected to reclaim. lsof lists a large deleted log held by the console capture service. In that case, restarting Rust alone might leave the log open, because another service owns it. Check how that service is meant to reopen its logs before interrupting the game.


## Read the two plausible results differently

Say df reports 2 GiB available on the game disk. The backup has been paused, the console capture service holds a deleted file whose reported size is 18 GiB, and the Rust process holds only small deleted files. Confirm the matching filesystem before you act. Then decide when the capture service can safely reopen its logs. Measure the space again instead of assuming you will get all 18 GiB back. The size shown is a clue, and the filesystem’s available space is the result you need.

Now change the example. The same large file appears on the backup filesystem while the game still has 2 GiB available. Releasing that file can help the backup disk. Follow the game filesystem separately to find its own source of pressure. If the log directory and game directory are on separate disks, the two symptoms can have different causes.

- Keep the before and after df results for the same path so you can compare them directly.
- Keep the holder’s name and the chosen reopen or stop method in the maintenance note. You can start there if the space disappears again.

## Release the space and verify a real save

When the holder supports reopening its logs, use its documented method. If the game itself is holding the deleted file, use your normal save and clean restart procedure. If it cannot save with the room currently available, free space from unrelated files you already know you can remove or move. Keep the active world files and the only recoverable backup in place.

Run df again for the save directory after the holder closes the file. Then check that the next world save completes and that the expected save file advances. The combination matters because extra free space alone tells you nothing about whether the game recovered from the earlier write failure.

If there is no matching open file, keep the measurements and look at the filesystem’s own accounting next. Snapshots, reserved blocks and directory access can each change what the two tools report. A single mismatch identifies where to look and leaves the cause open.


## Sources

- [GNU coreutils documentation, file space usage](https://www.gnu.org/software/coreutils/manual/coreutils.pdf)
- [lsof project tutorial on unlinked open files](https://github.com/lsof-org/lsof/blob/master/docs/tutorial.md#finding-an-unlinked-open-file)

## Further reading

- [Manage Rust logs when they fill your disk](https://rustsc.com/learn/management/rust-disk-filling-with-logs/index.html.md)
- [Restart Rust without losing the latest save](https://rustsc.com/learn/management/restart-rust-without-losing-the-latest-save/index.html.md)
- [Check the Windows network profile when Rust players suddenly can’t join](https://rustsc.com/blog/windows-network-profile-rust-join-failure/index.html.md) (23 October 2026). Compare the network Windows is using with the firewall rules you already set for Rust.
- [Your Rust host has free disk space. Why can’t the game save?](https://rustsc.com/blog/rust-save-no-space-with-free-disk/index.html.md) (21 October 2026). Use Linux file counts to find a full filesystem even when there are gigabytes available.

[Rust server admin blog](https://rustsc.com/blog/index.html.md)

---

HTML version: https://rustsc.com/blog/rust-linux-disk-stays-full-after-deleting-log/
