Bitcoin Forum
June 21, 2024, 10:37:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Location of bitchain under Linux? (Error: Disk space is low!)  (Read 967 times)
saljut7 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
November 24, 2013, 09:46:24 PM
 #1

Hi together,

my question is related to the location of the bitchain under linux. The only useful topic I found is here but it is for windows: https://bitcointalk.org/index.php?topic=171991.msg1789690#msg1789690

Why do I ask this?

I installed the 0.8.5beta-client on an encrypted sd-card under Debian. I read that you need at least 9GB for the blockchain so I decided to use an external "drive" because the internal drive of my Netbook is quite small.

Well, everything works fine and the QT-client synchronized from around 250 weeks to 79 weeks where he stopped with the error message: "Error: Disk space is low!"

I think Bitcoin doesn't save the bitchain in same directory as the client, isn't it? At least under Windows it is stored under "user data". I think under Linux it is the same because my SD-card with the client still has the same free space, nothing changed. At the moment I have 12GB free space on the card.

So my question: Does anybody know where BTC saves the chain and how I can relocate it?

Thank you in advance!
sj7
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
November 25, 2013, 12:06:20 AM
 #2

https://en.bitcoin.it/wiki/Data_directory
saljut7 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
November 25, 2013, 02:37:10 PM
 #3


FINALLY!!!

Quote
Linux

By default Bitcoin will put its data here:

~/.bitcoin/

You need to do a "ls -a" to see directories that start with a dot.

If that's not it, you can do a search like this:

find / -name wallet.dat -print 2>/dev/null

Thank you so much! Smiley

Now it is the question how I can relocate this hidden bitcoin-folder. The wiki mentions a "bitcoin.conf [optional]". I looked for it but there is no one. Do I have to set manually?
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1032



View Profile WWW
November 25, 2013, 08:04:12 PM
 #4

Now it is the question how I can relocate this hidden bitcoin-folder. The wiki mentions a "bitcoin.conf [optional]". I looked for it but there is no one. Do I have to set manually?
http://we.lovebitco.in/bitcoin-qt/configuration-file/

A configuration file can be put in the .bitcoin folder, however that means you have the .bitcoin directory AND the other data directory where the databases are stored, which is awkward. A better option is to move the contents of this folder to another, and start with a command line option (that you can create a menu option or script to run):

bitcoin-qt -datadir /mount/mydrive/bitcoin

http://we.lovebitco.in/bitcoin-qt/command-line-options/
saljut7 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
December 05, 2013, 12:06:43 AM
 #5

http://we.lovebitco.in/bitcoin-qt/configuration-file/

A configuration file can be put in the .bitcoin folder, however that means you have the .bitcoin directory AND the other data directory where the databases are stored, which is awkward. A better option is to move the contents of this folder to another, and start with a command line option (that you can create a menu option or script to run):

bitcoin-qt -datadir /mount/mydrive/bitcoin

http://we.lovebitco.in/bitcoin-qt/command-line-options/

Well, is it possible to set a config-file only for "-datadir=(dir)"-command?

What exactly is awkward in this procedure? I just started using BTC so there is nothing that could be "destroyed".

Thank you for your help and sorry for my late reply. I needed some time to follow the links.

/edited
saljut7 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
January 10, 2014, 04:46:54 PM
 #6

Found a solution:

Start the client with paramter -datadir like:

Code:
.../bitcoin-qt -datadir=.../newdatadirection
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!