user70627: 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:
/media/spider/Utils/bitcoin

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


user117651: 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:https://bitcoincore.org/bin/bitcoin-core-0.21.0/bitcoin-0.21.0-x86_64-linux-gnu.tar.gz
unpack and run bitcoind executable inside the bin folder.

user136825: if installed via snap, try snap connect bitcoin-core:removable-media
more info here

70627: <p>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:</p>
<pre><code>/media/spider/Utils/bitcoin
</code></pre>
<p>with permissions</p>
<pre><code>drwxrwxrwx 1 spider spider 448 اپریل   2 17:25 bitcoin
</code></pre>
<p>But when i try to run <code>bitcoin-core</code> i get this error</p>
<pre><code>$  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
</code></pre>
 117651: <p>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:</p>
<pre><code>sudo add-apt-repository ppa:luke-jr/bitcoincore
sudo apt-get update
sudo apt-get install bitcoin
</code></pre>
<p>or download the release from here:<br><a href="https://bitcoincore.org/bin/bitcoin-core-0.21.0/bitcoin-0.21.0-x86_64-linux-gnu.tar.gz" rel="nofollow noreferrer">https://bitcoincore.org/bin/bitcoin-core-0.21.0/bitcoin-0.21.0-x86_64-linux-gnu.tar.gz</a><br><br>
unpack and run bitcoind executable inside the bin folder.</p>
 136825: <p>if installed via snap, try <code>snap connect bitcoin-core:removable-media</code></p>
<p>more info <a href="https://askubuntu.com/questions/1328448/official-bitcoin-client-fails-to-start-with-error-initializing-settings-failed">here</a></p>
