# Add'ed files are duplicated in the cache, no links

**URL:** <https://discuss.dvc.org/t/added-files-are-duplicated-in-the-cache-no-links/209>\
**Category:** Questions\
**Created:** [August 25, 2019, 11:34am UTC](https://discuss.dvc.org/t/added-files-are-duplicated-in-the-cache-no-links/209 "2019-08-25T11:34:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![byoussin](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@byoussin](https://discuss.dvc.org/u/byoussin)\
**Post date:** [August 25, 2019, 11:34am UTC](https://discuss.dvc.org/t/added-files-are-duplicated-in-the-cache-no-links/209/1 "2019-08-25T11:34:29Z")

</div>

I have started using dvc by running `dvc init` and then `dvc add` for two directories and one file.

All worked fine, all filed have been copied to the cache but I noted that the total disk usage has doubled as the original files remained in addition to the cached copies.

The original files do not show any signs of being reflinks.

Is this right?

I am using Ubuntu 16.04.

---

<div class="post-metadata">

**Author:** ![kupruser](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kupruser](https://discuss.dvc.org/u/kupruser)\
**Post date:** [August 26, 2019, 7:32am UTC](https://discuss.dvc.org/t/added-files-are-duplicated-in-the-cache-no-links/209/2 "2019-08-26T07:32:27Z")

</div>

@byoussin Does your fs support reflinks? You could check it with `dvc version` command. If it does not, then copies are a fallback that we use when reflinks are not supported. You could also use hardlinks or symlinks, as described in [https://dvc.org/doc/commands-reference/config#cache](https://dvc.org/doc/commands-reference/config#cache) .

---

<div class="post-metadata">

**Author:** ![byoussin](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@byoussin](https://discuss.dvc.org/u/byoussin)\
**Post date:** [August 26, 2019, 12:26pm UTC](https://discuss.dvc.org/t/added-files-are-duplicated-in-the-cache-no-links/209/3 "2019-08-26T12:26:25Z")

</div>

@kupruser Thanks!  
Indeed, `dvc version` says:

> Cache: reflink - False, hardlink - True, symlink - True

It appears that normally ubuntu filesystems do not support reflinks, although some do:

> **[How to format a drive on Ubuntu with the XFS file system and reflinks support](https://techsparx.com/linux/disks/ubuntu-xfs.html)**

Mine apparently does not.
