3

I want to use data directory from a different location (external SSD) on a Windows machine. When I save the path for it in bitcoin.conf it still uses old data directory. How can I use datadir in bitcoin.conf?

bitcoin.conf file:

datadir=F:\bitcoin-mainnet

debug.log logs:

2021-03-05T01:34:22Z Config file arg: datadir="F:\\bitcoin-mainnet"

It still uses old data directory which doesn't have data for a synced full node (mainnet):

data-dir-info

1
  • This post could be improved by stating explicitly what you're asking.
    – Murch
    Mar 5, 2021 at 16:47

1 Answer 1

1

This got resolved but not sure why specifying path in bitcoin.conf for datadir doesn't work.

Workaround:

Open "%UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Bitcoin Core"

Right click on "Bitcoin Core (64-bit)" and go to properties.

The target for this shortcut should be "C:\Program Files\Bitcoin\bitcoin-qt.exe" -datadir=F:\bitcoin-mainnet

OR

Open command prompt/powershell and run "bitcoin-qt.exe" with datadir path

C:\Program Files\Bitcoin>bitcoin-qt.exe -datadir="F:\bitcoin-mainnet"

full-node-sync

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.