Bitcoin Forum
September 19, 2024, 10:58:31 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: change data directory on Ubuntu  (Read 1039 times)
anon4250158 (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 256


View Profile
March 18, 2015, 09:53:30 AM
 #1

I installed bitcoin-qt on Ubuntu 14.04, and when I first ran it it asked if I wanted to use the default directory or a custom one.  I want to use a custom one, but I entered the directory path incorrectly.  Now whenever I open bitcoin-qt it gives me the "error opening block database- do you want to rebuild?" message.  How do I change the data directory?  It's so easy on Windows, but I know next to nothing about Ubuntu.
matt4054
Legendary
*
Offline Offline

Activity: 1946
Merit: 1035



View Profile
March 18, 2015, 10:03:23 AM
 #2

It's so easy on Windows, but I know next to nothing about Ubuntu.

It's the same procedure in Windows or Linux, actually, only the location of the bitcoin.conf file changes.

Locate your bitcoin.conf file, it should be ~/.bitcoin/bitcoin.conf

If you're not familiar with the UNIX filesystem paths and hierarchy, and/or using the GUI:

  • ~ is your home directory, i.e. /home/<your-username>
  • .bitcoin is a hidden directory, so you may need to change display settings if it's not showing up

Then use your favorite editor and add or edit this line:

Code:
datadir=/<path>/<to>/<your>/<datadir>
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!