---
title: "Discussion on \"Why rm Doesn't Free Disk Space in Linux (and How to Fix)\" | Hashnode"
description: "Discussion on \"Why rm Doesn't Free Disk Space in Linux (and How to Fix)\". Deleted files still taking up disk space? Learn how open file descriptors block rm in Linux, and how to find and reclaim space using lsof and /proc."
url: "https://hashnode.com/posts/linux-rm-not-freeing-disk-space/6abb688a8b1942efb7c8c8f1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why rm Doesn't Free Disk Space in Linux (and How to Fix)](https://doogal.dev/linux-rm-not-freeing-disk-space?utm_source=hashnode&utm_medium=feed)

Deleted files still taking up disk space? Learn how open file descriptors block rm in Linux, and how to find and reclaim space using lsof and /proc.

Sep 29 · 5 min read · doogal.dev  
Read the article

-   [#linux](https://hashnode.com/tag/linux)
-   [#devops](https://hashnode.com/tag/devops)
-   [#sysadmin](https://hashnode.com/tag/sysadmin)
-   [#softwareengineering](https://hashnode.com/tag/softwareengineering)

## Written by

[Doogal Simpson](https://hashnode.com/@doogal)

@doogal

  
[View profile](https://hashnode.com/@doogal)

"hey doogal, what is .... ?"

## Responses 1

Markdown supported · ⌘↵ to post

[Mateo Ruiz](https://hashnode.com/@mateoruiz)

[Oct 2](https://hashnode.com/posts/linux-rm-not-freeing-disk-space/6abb688a8b1942efb7c8c8f1/comment/6abf789a7d2d1b1222b37d3b)

The useful production lesson here is that `rm` changes namespace state, not necessarily storage state. That also explains why `df` vs `du` is such a valuable diagnostic combination: when they disagree significantly, deleted-but-open files are one of the first things worth checking.

I’d also treat truncating `/proc/<pid>/fd/<fd>` as an emergency recovery technique rather than the normal fix. The safer long-term solution is getting the application’s log lifecycle right log rotation, reopening descriptors, and monitoring filesystem headroom so a runaway log doesn’t turn into a 2 AM storage incident in the first place.
