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...
mdgm-ntgr
Jun 25, 2015NETGEAR Employee Retired
I've got some feedback from some colleagues.
You may find this explanation useful: http://www.spinics.net/lists/linux-btrfs/msg39960.html
df and du are using different methods to calculate how much space is used.
btrfs df is using metadata to calculate whereas df is doing a raw lookup. btrfs df can take into consideration mounted snapshots and home shares. The snapshots will take up some space and du will not show this.
du isn't a good tool to use with btrfs to see how full the filesystem is.
df doesn't know about compression on btrfs level or an unbalanced filesystem so it's not accurate.
You may find this explanation useful: http://www.spinics.net/lists/linux-btrfs/msg39960.html
df and du are using different methods to calculate how much space is used.
btrfs df is using metadata to calculate whereas df is doing a raw lookup. btrfs df can take into consideration mounted snapshots and home shares. The snapshots will take up some space and du will not show this.
du isn't a good tool to use with btrfs to see how full the filesystem is.
df doesn't know about compression on btrfs level or an unbalanced filesystem so it's not accurate.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!