Bitcoin Forum
May 22, 2024, 03:29:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Storing blockchain in folder other than /Users/user/Library/Application Support  (Read 981 times)
akahanky (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
July 17, 2013, 05:23:07 PM
 #1

I have recently downloaded Bitcoin-Qt.app for Mac and subsequently the blockchain.  My startup disk is not very large and I would rather store the blockchain on another internal drive in my computer.

I have not been successful in doing so yet though after having read about using symbolic links and configuration files and datadir=<path> flags.  Using any of the mentioned methods has only led to Bitcoin-Qt either recreating the Bitcoin folder in Application Support or not syncing at all.  I have not found any solid help for Mac users (most of the help that I found involved people who are running Linux or Windows and explain how to do it for their OS and state that "it will be very similar for Mac").

Anyone out there who can point me to some useful info or tell me what I should be doing?

Thanks.
akahanky (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
July 22, 2013, 10:34:28 PM
 #2

bump
worldlybedouin
Sr. Member
****
Offline Offline

Activity: 376
Merit: 250


View Profile WWW
July 23, 2013, 11:08:33 PM
 #3

I'm not sure how it's done on a Mac, but here's how it works on a Windows machine.

Typically it's all stored under C:\Users\<username>\AppData\Roaming\Bitcoin

However, my C: is a small SSD and the databases from BTC and LTC were filling it up fast!  So I learned there is a command line paramter (-datadir=) which allows you to redirect the folder to a new location...so I created a short cut like this:

Code:
bitcoin-qt.exe -datadir=F:\BitcoinData


The -datadir=   optoin on the executable allows it to store the block chain data there.  I'm guessing the same command line argument exists for Mac as it does for Linux/Windows clients.

The above still leaves my wallet.dat on my C: drive but the blockchain database stuff is all on my F: drive instead.

Hope this helps.

LTC:  LXrAe2E6cBsK52GvUsYraeXkc2s7Ti7R5X
BTC:  1FLTMqVjTZ5MTdCF4npNZGFMEUGyBV4zcj
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
July 24, 2013, 02:58:12 AM
 #4

I'm not sure how it's done on a Mac, but here's how it works on a Windows machine.

Typically it's all stored under C:\Users\<username>\AppData\Roaming\Bitcoin

However, my C: is a small SSD and the databases from BTC and LTC were filling it up fast!  So I learned there is a command line paramter (-datadir=) which allows you to redirect the folder to a new location...so I created a short cut like this:

Code:
bitcoin-qt.exe -datadir=F:\BitcoinData


The -datadir=   optoin on the executable allows it to store the block chain data there.  I'm guessing the same command line argument exists for Mac as it does for Linux/Windows clients.

The above still leaves my wallet.dat on my C: drive but the blockchain database stuff is all on my F: drive instead.

Hope this helps.

yeah, in /users/xxx/AppData/Roaming/Bitcoin  

in the bitcoin.conf file

datadir=X:\Blah

the only file in my appdata/roaming/bitcoin is my bitcoin.conf file

the wallet.dat and everything else goes into whatever the datadir is

bitcoin-qt might be different, I only use bitcoind
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
July 24, 2013, 03:22:31 AM
 #5

OP states:

- snip -
I have not found any solid help for Mac users (most of the help that I found involved people who are running Linux or Windows and explain how to do it for their OS and state that "it will be very similar for Mac").
- snip -

Receives 2 responses:

I'm not sure how it's done on a Mac, but here's how it works on a Windows machine.
- snip -

- snip -
yeah, in /users/xxx/AppData/Roaming/Bitcoin   
- snip -
bitcoin-qt might be different, I only use bitcoind

LOL

 Undecided
toffoo
Sr. Member
****
Offline Offline

Activity: 408
Merit: 261



View Profile
July 24, 2013, 03:52:22 AM
 #6

Maybe try entering something like this at the Terminal prompt:

Code:
/Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt -datadir=/full/path/you/want/

and let us know if that works for you.


The bitcoin wiki mentions that you can set command-line options with a bitcoin.conf file, but not the -datadir option (because the bitcoin.conf file needs to be in the datadir directory), so you need to do this one as a command-line option.  Running GUI executables with command-line options on Mac is not exactly straightforward, but see if this command works.

timwizard
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
July 24, 2013, 08:01:42 PM
 #7

I'd use the ln command. Something like

ln -s /where/you/want ~/Users/user/Library/Application Support/Whereeveritusuallyputsit
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!