Mist Ethereum Wallet Dapp – How to Set a Different Datadir

datadirethereum-wallet-dappmist

With bitcoin and others, you can use --datadir option to specific where blockchain, keystore, etc are saved. But doesn't work with Mist.

From the offical wiki:

To configure the location of the data directory, the –datadir parameter can be specified. See CLI Options for more details.

I start Mist like this, but doesn't work. Still writes everything into %APPDATA%\Ethereum

R:\Ethereum\bin\Ethereum-Wallet.exe --datadir "R:\Ethereum\data\"

Also what is this stuff under : %AppData%\Roaming\Mist? Does that have any sensitive information in it?

Why not keep everything in one place and make it configurable? It's been standard practice for all others coins for ages now (so that it's easy to put on removable or encrypted drives, ideally both).

Best Answer

Ethereum-Wallet comes packaged with geth.exe which is the Ethereum blockchain node software. Here is the listing from the Ethereum-Wallet-win64-0-5-2.zip file downloaded from https://github.com/ethereum/mist/releases :

$ unzip -tv Ethereum-Wallet-win64-0-5-2.zip  | grep geth
testing: Ethereum-Wallet-win64-0-5-2/resources/node/geth/   OK
testing: Ethereum-Wallet-win64-0-5-2/resources/node/geth/geth.exe   OK

When you start Ethereum-Wallet.exe, it will automatically runs geth.exe if it does not detect that it is already running.

If you manually start R:\Ethereum\bin\Ethereum-Wallet.exe\resources\node\geth\geth.exe with the --datadir "R:\Ethereum\data\" option, geth.exe will use your specified directory for the blockchain data and the keystore information.

After geth.exe has started, start Ethereum-Wallet.exe and it will communicate with geth.exe which is using your specified directory.