Bitcoin Forum
January 20, 2018, 12:10:40 AM *
News: Electrum users must upgrade to 3.0.5 if they haven't already. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: change data directory on Ubuntu  (Read 887 times)
anon4250158
Sr. Member
****
Online Online

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
1516407040
Hero Member
*
Offline Offline

Posts: 1516407040

View Profile Personal Message (Offline)

Ignore
1516407040
Reply with quote  #2

1516407040
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1516407040
Hero Member
*
Offline Offline

Posts: 1516407040

View Profile Personal Message (Offline)

Ignore
1516407040
Reply with quote  #2

1516407040
Report to moderator
1516407040
Hero Member
*
Offline Offline

Posts: 1516407040

View Profile Personal Message (Offline)

Ignore
1516407040
Reply with quote  #2

1516407040
Report to moderator
1516407040
Hero Member
*
Offline Offline

Posts: 1516407040

View Profile Personal Message (Offline)

Ignore
1516407040
Reply with quote  #2

1516407040
Report to moderator
matt4054
Legendary
*
Offline Offline

Activity: 1456


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!