# How to change the blockchain dir

**URL:** <https://forum.zcashcommunity.com/t/how-to-change-the-blockchain-dir/13828>\
**Category:** Technical Support\
**Created:** [January 20, 2017, 1:46pm UTC](https://forum.zcashcommunity.com/t/how-to-change-the-blockchain-dir/13828 "2017-01-20T13:46:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oleks](https://avatars.discourse-cdn.com/v4/letter/o/43a26b/32.png) [@oleks](https://forum.zcashcommunity.com/u/oleks)\
**Post date:** [January 20, 2017, 1:46pm UTC](https://forum.zcashcommunity.com/t/how-to-change-the-blockchain-dir/13828/1 "2017-01-20T13:46:30Z")

</div>

Hello!  
I want to store data on another partition, how to do it?

---

<div class="post-metadata">

**Author:** ![anon47418038](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anon47418038](https://forum.zcashcommunity.com/u/anon47418038)\
**Post date:** [January 20, 2017, 5:18pm UTC](https://forum.zcashcommunity.com/t/how-to-change-the-blockchain-dir/13828/2 "2017-01-20T17:18:33Z")

</div>

you can start Zcash as “zcashd -datadir=” and then the location for the files!

---

<div class="post-metadata">

**Author:** ![oleks](https://avatars.discourse-cdn.com/v4/letter/o/43a26b/32.png) [@oleks](https://forum.zcashcommunity.com/u/oleks)\
**Post date:** [January 20, 2017, 5:56pm UTC](https://forum.zcashcommunity.com/t/how-to-change-the-blockchain-dir/13828/3 "2017-01-20T17:56:19Z")

</div>

Thanks for this solution.

Is it possible to somehow specify this option in the configuration files to make it the default?

---

<div class="post-metadata">

**Author:** ![anon47418038](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anon47418038](https://forum.zcashcommunity.com/u/anon47418038)\
**Post date:** [January 20, 2017, 5:57pm UTC](https://forum.zcashcommunity.com/t/how-to-change-the-blockchain-dir/13828/4 "2017-01-20T17:57:47Z")

</div>

that I have not tried! I’ve always seen it passed in on the command line, and was wondering the same thing myself last night while working on an app that uses datadir=

---

<div class="post-metadata">

**Author:** ![paige](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/paige/32/31152_2.png) [@paige](https://forum.zcashcommunity.com/u/paige)\
**Post date:** [January 25, 2017, 4:30am UTC](https://forum.zcashcommunity.com/t/how-to-change-the-blockchain-dir/13828/5 "2017-01-25T04:30:49Z")

</div>

Ah, it seems like `-datadir=` is the exception for the zcash.conf. Bitcoin has the same thing… only bitcoin-qt (which calls bitcoind) can save a configuration to start the client with the modified directory location each time.

Storing `datadir` in `zcash.conf` is paradoxical since `datadir` is the directory in which `zcash.conf` is stored. 🙃

---

<div class="post-metadata">

**Author:** ![megobotonoob](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@megobotonoob](https://forum.zcashcommunity.com/u/megobotonoob)\
**Post date:** [August 27, 2017, 12:22pm UTC](https://forum.zcashcommunity.com/t/how-to-change-the-blockchain-dir/13828/7 "2017-08-27T12:22:42Z")

</div>

ezy, just

cp -rp ~/.zcash/\* /new\_dir rm -rf ~/.zcash  
$ ln -s /new\_dir ~/.zcash

$ chown -h your\_user:your\_group ~/.zcash
