2

I'm a little confused. With ls -laght a file with the size 1,0T is displayed:

-rw------- 1 nogroup 1,0T May 6 14:01 nextcloud-flat.vmdk

with ncdu only 9,1 GB:

/mnt/backup/backup/nextcloud/nextcloud-2019-05-06_11-23-12
9.1 GiB [###########] nextcloud-flat.vmdk

What's the real truth now? Background: A VMWare backup with ghettoVCB was made to an NFS server. The parameter is set that ghettoVCB converts the vmdk files into a 'flat'.

Melebius
  • 11,750

1 Answers1

1

In general there are three things to consider:

1) Different rounding rules 2) Possibly using GB (1000^3) vs. GiB (1024^3) 3) du reports the actual space used, when ls reports the size of the file

But in this case, you have a lot larger file when running ls than when running du, what should not happen for regular files.

As it is a lot larger (1 TB vs. 9.1 GB), it may be a sparse file that may grow up to 1 TB but only uses 9.1 GB, yet.

allo
  • 671