I am trying to run a bitcoin node. I want to set the datadir to a folder located on drive other than on which I have installed ubuntu. Folder I want to set as datadir:


with permissions

drwxrwxrwx 1 spider spider 448 اپریل   2 17:25 bitcoin

But when i try to run bitcoin-core i get this error

$  bitcoin bitcoin-core.daemon --datadir=/media/spider/Utils/bitcoin   
Error: Failed saving settings file:
- Error: Unable to open settings file /media/spider/Utils/bitcoin/settings.json.tmp for writing
  • Hi Asad Hayat, which version of Bitcoin Core are you running?
    – Murch
    Apr 2, 2021 at 13:36
  • Bitcoin Core version v0.21.0 (Latest, Installed Yesterday via snap)
    – Asad Hayat
    Apr 2, 2021 at 16:23
  • 1
    Try without snap once. Don't have enough reputation to comment.
    – BlueTang
    Apr 2, 2021 at 18:06

2 Answers 2


Applications in a Snap run in a container with limited access to the host system, you can install bitcoin-core with full filesystem access via the Luke-Jr repository:

sudo add-apt-repository ppa:luke-jr/bitcoincore
sudo apt-get update
sudo apt-get install bitcoin

or download the release from here:

unpack and run bitcoind executable inside the bin folder.


if installed via snap, try snap connect bitcoin-core:removable-media

more info here

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.