Sparse: Difference between revisions

From DWIKI
Line 12: Line 12:
  dd seek=10G if=/dev/zero of=sparsetest bs=1 count=1 status=none
  dd seek=10G if=/dev/zero of=sparsetest bs=1 count=1 status=none
  du --block-size=1 sparsetest
  du --block-size=1 sparsetest
8192    sparsetest
  du --block-size=1 --apparent sparsetest
  du --block-size=1 --apparent sparsetest
10737418241    sparsetest
If these outputs are very different, sparse is supported :)
If these outputs are very different, sparse is supported :)


==Copy sparse file==
==Copy sparse file==
  rsync -S
  rsync -S

Revision as of 10:33, 10 July 2023

Links

Storage_full

HOWTO

Check sparse file

Compare:

ls -lh myfile
du -sh myfile

Or

dd seek=10G if=/dev/zero of=sparsetest bs=1 count=1 status=none
du --block-size=1 sparsetest

8192 sparsetest

du --block-size=1 --apparent sparsetest

10737418241 sparsetest

If these outputs are very different, sparse is supported :)

Copy sparse file

rsync -S