$ HNORIGIN_ LINUX FILESYSTEM INVESTIGATION

Linux df vs. du Disk Space Discrepancy Decoder

Guided, evidence-based troubleshooting assistant for discrepancies between df -h and du -sh. Collects diagnostic evidence, isolates root causes, prevents destructive mistakes, and builds an investigation report.

$ Runs in your browser. Nothing you enter is sent anywhere.
1

Enter Filesystem and Space Measurements

Does not default to ext4. XFS has no ext4-style reserved block percentage.

Target filesystem path (e.g. / or /var).

lsblk -o MAJ:MIN,MOUNTPOINT

Raw number from the “Used” column of df.

Must be executed with the -x flag to prevent crossing mounts.

How the df vs du check works

df asks the filesystem how much space is in use. du walks the directory tree and adds up the files it can see. When the two numbers disagree, something is using space that du cannot reach, for example a deleted file that a running process still holds open, data hidden under a mount point, or a filesystem that has run out of inodes. This tool only suggests a cause when your pasted output supports it.

Official references: du(1), df(1) and findmnt(8) on man7.org.

HNOrigin is an independent infrastructure troubleshooting resource and is not affiliated with or endorsed by Red Hat or other vendors. Product names are trademarks of their respective owners.

Scroll to Top