df not reporting correct disk usage

I had a problem where df and du disagreed with the amount of disk usage. The cause was processes holding on to unlinked files. Running the following identified the processes:

ls -ld /proc/*/fd/* 2>&1 | fgrep ‘(deleted)’

I killed the processes and df is now showing the correct information.

1 thought on “df not reporting correct disk usage

  1. Pingback: df and du disk usage report mismatch | Apuntes de root

Leave a Reply

Your email address will not be published. Required fields are marked *