Bitcoin Forum
October 24, 2017, 02:28:48 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: change data directory on Ubuntu  (Read 855 times)
anon4250158
Sr. Member
****
Offline Offline

Activity: 265



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.

      ░▓██████████████░
    ░▒██            ▒██▒░         ▓█████▓                               ░█████▒               ███                   
█████▓░     ██████░   ▒▓████      ██░░░▓█▓                             ▒███▒▓███              ███                     
██        █▓▒▒▒▒▒▓▓█▓▒    ██     ▒█▓    ██                             ███   ▒██▒                                 
▓█      ░█▓▒▒▒▒▒▒▒▒▓▓▓█░  █▓     ▓█▒   ▒█▓  ░████▓    █████   ░█████▓  ██▓    ██▓  ███████▓   ▓██   ▒█████▓   ███████▓
░█░    ░█▓▒▒░░░░░▒ ░▒██  ░█░     ██    ██░  ██  ▓█▒  ██░ ▒█▓  ▓█▓  ██  ██▓    ██▓  ███▒ ▓███  ███  ▒██▓ ▒██▒  ███▒ ▓███
 ██    ██▒░░░▒▒ ░░▒▒▓█▒  ██     ▒█▓    ██  ██   ▒█▒ ▓█░   █▓  ██   ██  ██▓    ██▓  ███   ███  ███  ▓██   ██▓  ███   ███
 ▒█░ ░▒█▒▒▒░░░░░▒▒▒▒▒▒█ ░█▒     ▓█░   ▒█▓  ███████  ███████░ ░█▓   ██  ██▓    ██▓  ███   ███  ███  ▓██   ███  ███  ░███
  ██ ░██▓▒▒░░░▒▒▒▒░░░█░ ██      ██    ██░ ▒█▓░▒░░  ░█▓░▒░░░  ▓█░  ▒█▒  ██▓    ██▓  ███  ░███  ███  ▓██   ███  ███  ░███
   ██  █▓██▓▒▒▒▒░▒▒▓█▒ ██      ▒█▓   ░██  ██       ▓█░       ██   ██   ███   ▒██▒  ███  ░███  ███  ▓██   ██▓  ███  ░███
    ██    ▒▓███████▓  ██       ██▒  ▒██   ██  ░██  ▓█░  ██░ ░██  ▓█▓   ▓██▓▒▒███   ███  ░███  ███  ░██▓░▓██▒  ███  ░███
     ██░       ░    ░██        ██████▓    ▒█████   ░█████░  ▓█████▓     ▒█████▓    ███  ░███  ███   ▒█████▒   ███  ░███
      ▒██          ██▒                                      ██                                                   
        ▒██░     ▓██                                       ▒█▓                                                         
          ▓██░ ▓██░                                        ██░                                                         
            ▒██▓
Tor Integrated & Secured
1508812128
Hero Member
*
Offline Offline

Posts: 1508812128

View Profile Personal Message (Offline)

Ignore
1508812128
Reply with quote  #2

1508812128
Report to moderator
1508812128
Hero Member
*
Offline Offline

Posts: 1508812128

View Profile Personal Message (Offline)

Ignore
1508812128
Reply with quote  #2

1508812128
Report to moderator
1508812128
Hero Member
*
Offline Offline

Posts: 1508812128

View Profile Personal Message (Offline)

Ignore
1508812128
Reply with quote  #2

1508812128
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
matt4054
Legendary
*
Offline Offline

Activity: 1372


BitcoinQueue.com


View Profile WWW
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!