How do I specify in which directory Bitcoin blocks and other data should be stored?

15

6

I am on Windows and installed the Bitcoin wallet. The block folder seems to grow bigger everyday and is stored on my C drive in the roaming directory. I would like to set this to some other folder on another drive, which has more place. How would I go about doing this?

Enthusiast

Posted 2013-05-03T01:51:51.473

Reputation: 413

Question was closed 2014-08-29T05:31:51.313

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?. Possible duplicate of Bitcoin-Qt setup: Change block-chain file location, settings? documentation?.

Peter Mortensen 2014-08-01T12:20:07.543

Answers

10

I believe you can specify this directory using the datadir configuration in bitcoin.conf.

-datadir=<dir>         Specify data directory

See Running Bitcoin.

Colin Dean

Posted 2013-05-03T01:51:51.473

Reputation: 6 559

That seems to answer the question. I will try it outEnthusiast 2013-05-03T02:13:33.433

1What about on Ubuntu Linux?John 2013-08-08T20:13:03.090

1No difference, John.Colin Dean 2013-08-09T20:34:57.007