<p>Symlink the wallet.dat file into the truecrypt volume</p>

CC BY-SA 3.0
2014-01-19T02:48:32.340Z
2014-01-28T23:58:30.683Z
2014-01-28T23:58:30.683Z
timhc22
<p>Maybe this can help you, it seems quite easy to do:</p>

<p><a href="https://en.bitcoin.it/wiki/Securing_your_wallet#Making_a_new_wallet" rel="nofollow">https://en.bitcoin.it/wiki/Securing_your_wallet#Making_a_new_wallet</a></p>

CC BY-SA 3.0
2012-11-17T08:44:22.233Z
2012-11-17T08:44:22.233Z
Bitmister
<p>A solution has been discussed, but not implemented:
 - <a href="http://github.com/bitcoin/bitcoin/issues/68" rel="nofollow">http://github.com/bitcoin/bitcoin/issues/68</a>  <a href="https://github.com/bitcoin/bitcoin/pull/287" rel="nofollow">https://github.com/bitcoin/bitcoin/pull/287</a></p>

CC BY-SA 3.0
2012-01-15T08:40:33.923Z
Hmm, it appears I'm actually already following that issue.
ripper234
CC BY-SA 3.0
2012-01-15T07:45:08.343Z
2012-01-15T07:45:08.343Z
Stephen Gornick
<p>The bitcoin startup argument <code>-datadir=&lt;dir&gt;</code> allows you to specify a data directory, including the wallet file. </p>

<p>That'll still require you to pass a custom argument I'm afraid. The config file is also in the data dir, hence there's a chicken-and-the-egg problem that makes it impossible to configure up ahead. <strong>Unless</strong> you're savvy enough to change the default constant in the source and recompile, which might be okay since you're already running Linux.</p>

CC BY-SA 3.0
2012-01-14T17:51:20.010Z
2012-01-15T13:53:24.833Z
2012-01-15T13:53:24.833Z
Lodewijk
<p>The default setup on Linux/Ubuntu has Bitcoin storing the data in the <code>~/.bitcoin</code> folder, which is usually not encrypted with <a href="http://en.wikipedia.org/wiki/TrueCrypt" rel="nofollow">TrueCrypt</a>.</p>

<p>Suppose I do now want to rely on the internal Bitcoin encryption system, but instead want to save the wallet to disk on using TrueCrypt encryption. Currently, I have a separate TrueCrypt data file, that I mount to a partition, copy files from it to <code>~/.bitcoin</code>, and when I'm finished, I copy the files back to the truecrypt volume, and shred+delete the copies on <code>~/.bitcoin</code>.</p>

<p>This is bothersome and error prone.</p>

<p>Can I configure Bitcoin to only take the wallet from <code>/media/trucrypt</code>, but keep the blockchain data in <code>~/.bitcoin</code>?</p>

CC BY-SA 3.0
2012-11-17T23:39:33.497Z
I haven't tried, but maybe you could copy once to `/media/trucrypt` and then bind mount to `~/.bitcoin` with `mount -B /media/trucrypt ~/.bitcoin`?
snapfractalpop
CC BY-SA 3.0
2014-08-01T12:44:57.153Z
Asking about how to change the default storage location has been posted many, many times. The future canonical question is probably *[Bitcoin-Qt setup: Change block-chain file location, settings? documentation?](http://bitcoin.stackexchange.com/questions/9259)*. Possible duplicate of *[Bitcoin-Qt setup: Change block-chain file location, settings? documentation?](http://bitcoin.stackexchange.com/questions/9259)*.
Peter Mortensen
<bitcoin-core>
Can I configure Bitcoin (Linux) with a custom wallet location?
ripper234
# Can I configure Bitcoin (Linux) with a custom wallet location?

(Asked by: username_0 on 2012-01-14)

The default setup on Linux/Ubuntu has Bitcoin storing the data in the `~/.bitcoin` folder, which is usually not encrypted with [TrueCrypt](http://en.wikipedia.org/wiki/TrueCrypt).

Suppose I do now want to rely on the internal Bitcoin encryption system, but instead want to save the wallet to disk on using TrueCrypt encryption. Currently, I have a separate TrueCrypt data file, that I mount to a partition, copy files from it to `~/.bitcoin`, and when I'm finished, I copy the files back to the truecrypt volume, and shred+delete the copies on `~/.bitcoin`.

This is bothersome and error prone.

Can I configure Bitcoin to only take the wallet from `/media/trucrypt`, but keep the blockchain data in `~/.bitcoin`?

**Tags:** bitcoin-core

> **Comments:**
> **username_1**: I haven't tried, but maybe you could copy once to `/media/trucrypt` and then bind mount to `~/.bitcoin` with `mount -B /media/trucrypt ~/.bitcoin`?  
> **username_2**: Asking about how to change the default storage location has been posted many, many times. The future canonical question is probably *[Bitcoin-Qt setup: Change block-chain file location, settings? documentation?](http://bitcoin.stackexchange.com/questions/9259)*. Possible duplicate of *[Bitcoin-Qt setup: Change block-chain file location, settings? documentation?](http://bitcoin.stackexchange.com/questions/9259)*.  

---

## 4 answers

### Answer by username_6 on 2012-01-14. Score: 4 | Accepted answer

The bitcoin startup argument `-datadir=` allows you to specify a data directory, including the wallet file.

That'll still require you to pass a custom argument I'm afraid. The config file is also in the data dir, hence there's a chicken-and-the-egg problem that makes it impossible to configure up ahead. **Unless** you're savvy enough to change the default constant in the source and recompile, which might be okay since you're already running Linux.


---

### Answer by username_3 on 2014-01-19. Score: 3

Symlink the wallet.dat file into the truecrypt volume


---

### Answer by username_4 on 2012-11-17. Score: 1

Maybe this can help you, it seems quite easy to do:

<https://en.bitcoin.it/wiki/Securing_your_wallet#Making_a_new_wallet>


---

### Answer by username_5 on 2012-01-15. Score: 1

A solution has been discussed, but not implemented:
- <http://github.com/bitcoin/bitcoin/issues/68> <https://github.com/bitcoin/bitcoin/pull/287>

> **Comments:**
> **username_0**: Hmm, it appears I'm actually already following that issue.  

---

