Author

Topic: Relocating the blockchain data (Read 1506 times)

hero member
Activity: 533
Merit: 500
^Bitcoin Library of Congress.
August 02, 2014, 12:04:12 PM
#14
Thanks! Cheesy  The only reason I know is because I wanted to do the same thing myself, but found out it doesn't work. Wink
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF
August 02, 2014, 10:00:51 AM
#13
"All command-line options (except for -datadir and -conf) may be specified in a configuration file." Source:https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

You can't use the "datadir=" command in the bitcoin.conf file.

Nice catch.  Smiley
hero member
Activity: 533
Merit: 500
^Bitcoin Library of Congress.
August 02, 2014, 09:48:00 AM
#12
"All command-line options (except for -datadir and -conf) may be specified in a configuration file." Source:https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

You can't use the "datadir=" command in the bitcoin.conf file.
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF
August 02, 2014, 06:19:09 AM
#11
That's odd, what does your bitcoin.conf look like?

I've searched but cannot find a bitcoin.conf associated with that bitcoin-qt.exe from what I can tell. Perhaps I'm missing something? [..]

You have to create it yourself. You then can put datadir= in there.

https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File
legendary
Activity: 2912
Merit: 1060
August 02, 2014, 04:26:41 AM
#10
That dash you're using is longer than usual. It looks like you copied another character from the web. Replace it.

You aren't using the proper dash – vs -

Bitpop strikes again. Boom.
cp1
hero member
Activity: 616
Merit: 500
Stop using branwallets
July 11, 2014, 12:10:06 PM
#9
Type the command into the command line and see if it gives an error, and/or check your log file.  You've only got 1 dash, right?
hero member
Activity: 906
Merit: 1034
BTC: the beginning of stake-based public resources
July 11, 2014, 03:57:36 AM
#8
That's odd, what does your bitcoin.conf look like?

I've searched but cannot find a bitcoin.conf associated with that bitcoin-qt.exe from what I can tell. Perhaps I'm missing something?

Are you trying to edit the actual file in the bitcoin folder as that won't work you need to edit a short cut not the direct bitcoin.exe

Yes: I'm editing the shortcut, not the .exe. The shortcut is in the same directory as the .exe.

Code:
mklink /D %appdata%\bitcoin G:\bitcoin
then run bitcoin as normal (without datadir argument)

I'd prefer to do this without creating symbolic links if possible.

That's odd, what does your bitcoin.conf look like?

legendary
Activity: 2058
Merit: 1452
July 10, 2014, 03:41:18 PM
#7
Code:
mklink /D %appdata%\bitcoin G:\bitcoin
then run bitcoin as normal (without datadir argument)
legendary
Activity: 1540
Merit: 1002
July 10, 2014, 01:02:34 PM
#6
Are you trying to edit the actual file in the bitcoin folder as that won't work you need to edit a short cut not the direct bitcoin.exe
cp1
hero member
Activity: 616
Merit: 500
Stop using branwallets
July 10, 2014, 12:56:40 PM
#5
That's odd, what does your bitcoin.conf look like?
hero member
Activity: 906
Merit: 1034
BTC: the beginning of stake-based public resources
July 10, 2014, 12:54:07 PM
#4
This may sound stupid but remove all the " and it should work

C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe –datadir=G:\Bitcoin
C:\Program Files (x86)\Litecoin\litecoin-qt.exe –datadir=G:\Litecoin

Tried that and windows 7 reports:

Quote
The name 'C:\Program' specified in the target box is not valid. Make sure the path and file name a correct.

So looks like it can't handle the spaces without the quotes. I also expanded the double quotes around the entire string and got  a different error.

For some reason it does not raise any errors on:
C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe \datadir=G:\Bitcoin
C:\Program Files (x86)\Litecoin\litecoin-qt.exe \datadir=G:\Litecoin

But still uses the same directories on C drive when loaded from the shortcut.
legendary
Activity: 1008
Merit: 1000
July 10, 2014, 12:51:54 PM
#3
This may sound stupid but remove all the " and it should work

C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe –datadir=G:\Bitcoin
C:\Program Files (x86)\Litecoin\litecoin-qt.exe –datadir=G:\Litecoin

If you do that, then the program won't be found, because there are spaces in the name of the folder "Program Files (x86)".
legendary
Activity: 1540
Merit: 1002
July 10, 2014, 04:47:27 AM
#2
This may sound stupid but remove all the " and it should work

C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe –datadir=G:\Bitcoin
C:\Program Files (x86)\Litecoin\litecoin-qt.exe –datadir=G:\Litecoin
hero member
Activity: 906
Merit: 1034
BTC: the beginning of stake-based public resources
July 10, 2014, 04:25:35 AM
#1
This question has been asked before but I cannot find a solution to my specific problem.

I have created shortcuts for both bitcoin-qt and litecoin-qt and pointed them at their respective data folders which I have copied from their original locations. However they wallet software run from the shortcuts is using the original locations for the blockchain data.

Original locations:
C:\Users\[username]\AppData\Roaming\Bitcoin\
C:\Users\[username]\AppData\Roaming\Litecoin\

Copied them to:
G:\Bitcoin
G:\Litecoin

Under Properties>Target for each shortcut I have then specified:
"C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe" –datadir=G:\Bitcoin
"C:\Program Files (x86)\Litecoin\litecoin-qt.exe" –datadir=G:\Litecoin

However when the shortcuts are run the wallets launch and the original directory locations are still being used. I know this because I cannot move or edit the original directories when the application is running. If I exit, move the originals directories and restart the shortcuts the wallets try to re-download the entire blockchain.

I am using windows 7.
Jump to: