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 19, 2015Guru - Experienced User
Drive firmware is in the drive flash memory, not on the platter. And df /data only reports on the data partition, so it does not include the OS partition.
mrQQ - you are running OS6 on this ultra, correct?
With BTRFS there are a lot of reasons why these numbers might not tie out. I think by default there are two copies of the metadata on the disk, which I think is enough to account for it (esp. if checksums are turned on). You might also add -a to the du command, and make sure it is counting the data in the hidden folders of the \data root.
In addition, snapshots/CoW create a discrepancy (though in the other direction - du reports more than df). Folder compression will also create a discrepancy (again in the other direction).
mrQQ - you are running OS6 on this ultra, correct?
With BTRFS there are a lot of reasons why these numbers might not tie out. I think by default there are two copies of the metadata on the disk, which I think is enough to account for it (esp. if checksums are turned on). You might also add -a to the du command, and make sure it is counting the data in the hidden folders of the \data root.
In addition, snapshots/CoW create a discrepancy (though in the other direction - du reports more than df). Folder compression will also create a discrepancy (again in the other direction).
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!