Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: mufa23 on March 18, 2013, 01:56:42 PM



Title: 0.8.1 - Changing the blockchain directory
Post by: mufa23 on March 18, 2013, 01:56:42 PM
Just downloaded 0.8.1, and I figured it was time I figured out how to change the directory that the blockchain is downloaded to. With the blockchain increasing in size, I figure it's about time I move the client, blockchain, wallet, and everything over to a harddrive other than C:\.

I made a shortcut so I could run some commands, but it's still not doing what I wanted it to.
Code:
F:\BITCOIN\bitcoin-qt.exe -detachdb "-datadir F:\BITCOIN\BLOCKCHAIN"

Tried following this, but it doesn't seem to be working. --> https://bitcointalk.org/index.php?topic=143220.0


Title: Re: 0.8.1 - Changing the blockchain directory
Post by: foggyb on March 18, 2013, 02:01:59 PM
This is what you're looking for: https://code.google.com/p/symlinker/ (https://code.google.com/p/symlinker/)

Symbolic links GUI app. Only works in VISTA/WIN7 and up. Might require NTFS partition as well.

Works flawlessly for me.

What you want to do is move the entire bitcoin userdata dir first, create the symbolic link folder in the default location, then point the link to where the files were moved to.


Title: Re: 0.8.1 - Changing the blockchain directory
Post by: mufa23 on March 18, 2013, 02:18:27 PM
I would prefer to use some form of option that qt has. Perhaps with some sort of command code or something. But if no one else replies, I guess this is my only option.


Title: Re: 0.8.1 - Changing the blockchain directory
Post by: foggyb on March 18, 2013, 02:21:41 PM
Symbolic linking is native Windows utility. But its command line only, hence the GUI app. Its open source.


Title: Re: 0.8.1 - Changing the blockchain directory
Post by: mufa23 on March 18, 2013, 03:12:14 PM
Code:
F:\BITCOIN\bitcoin-qt.exe -detachdb -datadir=F:\BITCOIN\BLOCKCHAIN

Fixed.
That worked! Thanks!