Bitcoin Forum
November 20, 2017, 09:49:48 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Running Bitcoin Core on External Hard Drive  (Read 1671 times)
RedFalcon
Newbie
*
Offline Offline

Activity: 2


View Profile
January 24, 2017, 11:37:39 PM
 #1

I downloaded the block data into an external hard drive, which took weeks.
But when I run Bitcoin Core on a different computer from my hard drive, it asks where I want to download the block data again.

Does this mean I can only use it on one computer?
Is there a way to get around this?

OS: Both are Windows
Version: Newest from the official site
1511171389
Hero Member
*
Offline Offline

Posts: 1511171389

View Profile Personal Message (Offline)

Ignore
1511171389
Reply with quote  #2

1511171389
Report to moderator
Join ICO Now Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511171389
Hero Member
*
Offline Offline

Posts: 1511171389

View Profile Personal Message (Offline)

Ignore
1511171389
Reply with quote  #2

1511171389
Report to moderator
devans
Full Member
***
Offline Offline

Activity: 165

bustadice


View Profile WWW
January 25, 2017, 12:09:02 AM
 #2

You can use the same data directory on multiple computers (though not at the same time).

The Bitcoin Core instance on the second computer has no inherent way of knowing where it should look for the blockchain, but you can tell it using the -datadir command line parameter. See this wiki entry for detailed instructions.

bustadice – Ƀ 20 max profit & 10 bit faucet
RedFalcon
Newbie
*
Offline Offline

Activity: 2


View Profile
January 25, 2017, 01:01:43 AM
 #3

You can use the same data directory on multiple computers (though not at the same time).

The Bitcoin Core instance on the second computer has no inherent way of knowing where it should look for the blockchain, but you can tell it using the -datadir command line parameter. See this wiki entry for detailed instructions.

Uhm...That does not work. When I do that, it says that my Bitcoin Core is already running.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1218


17kKQppUsngUiByDsce4JXoZEjjpvX9bpR


View Profile WWW
January 25, 2017, 01:34:16 AM
 #4

I downloaded the block data into an external hard drive, which took weeks.
But when I run Bitcoin Core on a different computer from my hard drive, it asks where I want to download the block data again.

Does this mean I can only use it on one computer?
No. Bitcoin Core will automatically look for the datadir in the default data directory location (i.e. not your external drive). It does not know that your external drive has all of the data, so it thinks the data is not there. You have to tell it to look for the external drive for the datadir by either choosing it in that dialog or starting Bitcoin Core with the -datadir=<path> option where <path> is the path to the datadir on your external drive.

Is there a way to get around this?
Once you set the datadir either in that dialog or the startup option in a shortcut on that computer (not your hard drive), it will always use the external drive so long as that drive uses the same drive letter every time.

          ▄█████▄
        ▄█████████▄
      ▄████▀   ▀████▄
    ▄████▀   ▄ ▄█▀████▄
  ▄████▀   ▄███▀   ▀████▄
▄████▀   ▄███▀   ▄   ▀████▄
█████   ███▀   ▄███   █████
▀████▄   ▀██▄▄███▀   ▄████▀
  ▀████▄   ▀███▀   ▄████▀
    ▀████▄       ▄████▀
      ▀████▄   ▄████▀
        ▀███  ████▀
          ▀█▄███▀
.
|
.
|
          ▄█████▄
        ▄█████████▄
      ▄████▀   ▀████▄
    ▄████▀   ▄ ▄█▀████▄
  ▄████▀   ▄███▀   ▀████▄
▄████▀   ▄███▀   ▄   ▀████▄
█████   ███▀   ▄███   █████
▀████▄   ▀██▄▄███▀   ▄████▀
  ▀████▄   ▀███▀   ▄████▀
    ▀████▄       ▄████▀
      ▀████▄   ▄████▀
        ▀███  ████▀
          ▀█▄███▀
unthy
devans
Full Member
***
Offline Offline

Activity: 165

bustadice


View Profile WWW
January 25, 2017, 03:38:30 AM
 #5

Uhm...That does not work. When I do that, it says that my Bitcoin Core is already running.

That sounds like Bitcoin Core hadn't fully shut down when you disconnected the hard drive. Try deleting the .lock file in the data directory and launching Bitcoin Core again.

bustadice – Ƀ 20 max profit & 10 bit faucet
HI-TEC99
Legendary
*
Offline Offline

Activity: 1050



View Profile
January 25, 2017, 02:56:22 PM
 #6

I downloaded the block data into an external hard drive, which took weeks.
But when I run Bitcoin Core on a different computer from my hard drive, it asks where I want to download the block data again.

Does this mean I can only use it on one computer?
No. Bitcoin Core will automatically look for the datadir in the default data directory location (i.e. not your external drive). It does not know that your external drive has all of the data, so it thinks the data is not there. You have to tell it to look for the external drive for the datadir by either choosing it in that dialog or starting Bitcoin Core with the -datadir=<path> option where <path> is the path to the datadir on your external drive.

Is there a way to get around this?
Once you set the datadir either in that dialog or the startup option in a shortcut on that computer (not your hard drive), it will always use the external drive so long as that drive uses the same drive letter every time.

The simplest way to do it is using the line of code below (include the full stop after the =). It will tell Bitcoin-qt to dump all the blockchain files into whatever folder Bitcoin-qt is in.

-datadir=.

Follow these instructions I posted for installing blackcoin to a thumb drive.


There is a way to to that if you create a shortcut to your blackcoin qt Bitcoin-qt inside a folder you installed it to.

Right click your blackcoin qt Bitcoin-qt and select "create shortcut". Right click the shortcut and select properties. A popup should open containing a text box with the word target written to the left of it. Add the line of text below to the end of whatever is already written in it. Make sure there is a space between the text that was already in the text box and the text below.

 -datadir=.

Press the apply button, then the OK button.

Double click the shortcut to start the blackcoin Bitcoin-qt wallet and it should store its largest files (the blockchain) and also its wallet.dat inside the folder containing the shortcut.

You can install the blackcoin qt Bitcoin-qt to a folder on a thumbdrive, use that shortcut technique, and when you double click the shortcut the blockchain and wallet.dat will get stored on your thumbdrive, not in appdata.

If you use that technique, and accidentally double click the qt instead of the shortcut a new wallet dat and blockchain will get created on your C drive inside appdata. Make sure you always start your wallet using the shortcut.
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!