Bitcoin Forum
May 11, 2024, 10:23:28 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Relocating the blockchain data  (Read 1491 times)
No_2 (OP)
Hero Member
*****
Offline Offline

Activity: 901
Merit: 1033


BTC: the beginning of stake-based public resources


View Profile
July 10, 2014, 09: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.
1715466208
Hero Member
*
Offline Offline

Posts: 1715466208

View Profile Personal Message (Offline)

Ignore
1715466208
Reply with quote  #2

1715466208
Report to moderator
1715466208
Hero Member
*
Offline Offline

Posts: 1715466208

View Profile Personal Message (Offline)

Ignore
1715466208
Reply with quote  #2

1715466208
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715466208
Hero Member
*
Offline Offline

Posts: 1715466208

View Profile Personal Message (Offline)

Ignore
1715466208
Reply with quote  #2

1715466208
Report to moderator
1715466208
Hero Member
*
Offline Offline

Posts: 1715466208

View Profile Personal Message (Offline)

Ignore
1715466208
Reply with quote  #2

1715466208
Report to moderator
1715466208
Hero Member
*
Offline Offline

Posts: 1715466208

View Profile Personal Message (Offline)

Ignore
1715466208
Reply with quote  #2

1715466208
Report to moderator
vm1990
Legendary
*
Offline Offline

Activity: 1540
Merit: 1002



View Profile
July 10, 2014, 09: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

Injust
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000



View Profile
July 10, 2014, 05: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)".
No_2 (OP)
Hero Member
*****
Offline Offline

Activity: 901
Merit: 1033


BTC: the beginning of stake-based public resources


View Profile
July 10, 2014, 05: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.
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
July 10, 2014, 05:56:40 PM
 #5

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

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
vm1990
Legendary
*
Offline Offline

Activity: 1540
Merit: 1002



View Profile
July 10, 2014, 06: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

grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
July 10, 2014, 08:41:18 PM
 #7

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

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
No_2 (OP)
Hero Member
*****
Offline Offline

Activity: 901
Merit: 1033


BTC: the beginning of stake-based public resources


View Profile
July 11, 2014, 08:57:36 AM
Last edit: July 11, 2014, 09:47:54 AM by No_2
 #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?

cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
July 11, 2014, 05: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?

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
bitpop
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
August 02, 2014, 09: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.

Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1001


https://gliph.me/hUF


View Profile
August 02, 2014, 11:19:09 AM
Last edit: August 02, 2014, 02:59:55 PM by Newar
 #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

OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
BookLover
Hero Member
*****
Offline Offline

Activity: 533
Merit: 500


^Bitcoin Library of Congress.


View Profile
August 02, 2014, 02:48:00 PM
 #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.

Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1001


https://gliph.me/hUF


View Profile
August 02, 2014, 03:00:51 PM
 #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

OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
BookLover
Hero Member
*****
Offline Offline

Activity: 533
Merit: 500


^Bitcoin Library of Congress.


View Profile
August 02, 2014, 05: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

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!