NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
mrQQ
Jun 19, 2015Apprentice
Please help me understand my used space
Hi, I have 2 2TB drives in the system. If I do `du -s /data` I get the used space as 154277424272. If I do a `df` I get used space as 1731570392. The difference is almost 200GB! Where does it go...
StephenB
Jun 26, 2015Guru - Experienced User
Thanks for posting the link; I was looking for something similar but didn't see it.
-du will tell you how much space is used by the files themselves (assuming the volume is not compressed).
-If there are no snapshots (or other use of CoW), then the difference between btrfs df and du should be the total currently unusable space (metadata, reserved by the file system, etc). However, the breakdown isn't complete enough to tell you where all the unusable space is.
-The space reporting from Windows is ultimately coming from SAMBA, and we know from other threads that is not accurate (tweaked to get optimal performance, but not-quite-correct results).
The net is that you can drive yourself crazy trying to tie all these numbers together, or you can just the imprecision.
-du will tell you how much space is used by the files themselves (assuming the volume is not compressed).
-If there are no snapshots (or other use of CoW), then the difference between btrfs df and du should be the total currently unusable space (metadata, reserved by the file system, etc). However, the breakdown isn't complete enough to tell you where all the unusable space is.
-The space reporting from Windows is ultimately coming from SAMBA, and we know from other threads that is not accurate (tweaked to get optimal performance, but not-quite-correct results).
The net is that you can drive yourself crazy trying to tie all these numbers together, or you can just the imprecision.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!