Pages:
Author

Topic: I do not want blockchain data stored under Application Data folder, how to - page 3. (Read 41768 times)

full member
Activity: 210
Merit: 100
How about just moving the whole folder to another drive and start the bitcoin client/server with the
Code:
-datadir=
option set? ...
This seems a bit of a band-aid to me as the modified path has to be specified at every start. Should OP use an unmodified shortcut (like the one in Start Menu) or launch the executable manually, the client will generate a new %appdata%\bitcoin directory.

Still, in dire need the -datadir parameter can be used with great success. Good thing you mentioned it psy.
legendary
Activity: 1358
Merit: 1002
How about just moving the whole folder to another drive and start the bitcoin client/server with the
Code:
-datadir=
option set?

The following link is mandatory for someone running bitcoin on their computers https://en.bitcoin.it/wiki/Running_Bitcoin
full member
Activity: 210
Merit: 100
On Windows Vista or later, the whole %appdata%\Bitcoin directory can be replaced with a symbolic directory link:
(0) Make sure the bitcoin client is not running.
(1) Move the %appdata%\Bitcoin directory to its target location (e.g. d:\bitcoinData)
(2) Run the command prompt as root and issue the command mklink /d "c:\users\\appdata\roaming\bitcoin" "d:\bitcoinData"
done!

This allows you to keep bitcoin client data anywhere, e.g. on a secure local fileserver.

EDIT::You should update your client to 5.2, there is no benefit in using the outdated version. Great many bugs were fixed since 4.0.

If you are using and older version of Windows with NTFS then I can send you an "ln" executable (or the source code for it in c++) that I whipped up years ago (just calls the API function to make a hard link - note that being a hard link the other logical drive must be on the same physical hard drive)...
Had you tried that yourself you'd know that bitcoin client crashes when using hard-linked directories.
Try your own tool or grab Sysinternals Junction from Microsoft and for crying out loud test your advice before posting.
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
If you are using and older version of Windows with NTFS then I can send you an "ln" executable (or the source code for it in c++) that I whipped up years ago (just calls the API function to make a hard link - note that being a hard link the other logical drive must be on the same physical hard drive).


Cheers,

Ian.
legendary
Activity: 938
Merit: 1001
bitcoin - the aerogel of money
This is what I have done on Windows 7 using a symbolic link:

1. Open C:\Users\[username]\AppData\Roaming\Bitcoin\

2. Move the file blk0001.dat (the large file that stores the block chain) to a different disk, eg. D:\bitcoin-blockchain\

3. Run Command Prompt as Administrator (Accessories>Command Promt) and right click "Run as administrator". CAREFUL! mistyping a command here could damage your OS, so make sure you have backed up all important files before doing this.

4. Go to Bitcoin Folder

Code:
cd C:\Users\[username]\AppData\Roaming\Bitcoin\

5. Execute mklink commnand, eg.

Code:
mklink blk0001.dat D:\bitcoin-blockchain\blk0001.dat


This replaces your blk0001.dat file with an identically-named symbolic link file.

Good luck.
legendary
Activity: 1316
Merit: 1000
Varanida : Fair & Transparent Digital Ecosystem
I found that the folder named "Bitcoin" in "Application Data" is so big, and my C disk has not that much volume to hold it, I want to place them else where? How can I achieve this? I use client v0.4, thanks. 
Pages:
Jump to: