Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: mikelebs on August 18, 2016, 06:33:37 PM



Title: Bitcoind directory
Post by: mikelebs on August 18, 2016, 06:33:37 PM
I have just downloaded bitcoin core onto Ubuntu 14.04 I've realised bitcoin file are stored at default directory /home/user/.bitcoin/ . Is this it possible to change this a my ubuntu partition doesn't have space to handle 80gb blockchain. I have another partition on my pc that can i want bitcoind to use as default dir to store all those files


Title: Re: Bitcoind directory
Post by: cr1776 on August 18, 2016, 06:50:23 PM
Take a look at this option:

-datadir=<dir>
in
https://en.bitcoin.it/wiki/Running_Bitcoin



Title: Re: Bitcoind directory
Post by: LoyceV on August 19, 2016, 09:41:23 PM
Open this file:
~/.config/Bitcoin/Bitcoin-Qt.conf
And edit this line:
strDataDir=/home/something/somethingelse

Don't forget to backup your wallet.dat, which will be in the same directory.


Title: Re: Bitcoind directory
Post by: PremiumCodeX on September 01, 2016, 09:14:23 AM
Here is a solution that you can execute in a GUI.
This method has been tested and it should work well, but I included a step to backup your current data folder for safety

1) Shut down your running Bitcoin Core
2) Open file browser
( 2.2 - Enable visibility for hidden folders: View -> Show Hidden Files )
3) Search the .bitcoin hidden folder ( it should be in Home by default )
4) Backup save: rename the .bitcoin folder to something else like savedbc
5) Copy the folder ( savedbc in this example ) to the desired location
6) Rename the copied folder in the desired location to 'Bitcoin'
7) Start your Bitcoin Core and at the window that shows up select to use CUSTOM data directory
8_) Select the new location for the custom data directory

Enjoy your new location!