<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>

CC BY-SA 4.0
2021-04-02T21:40:26.523Z
2021-04-02T21:40:26.523Z
leevancleef
<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>

CC BY-SA 4.0
2024-07-23T22:51:04.810Z
This helped me getting back online, thx! I'm moving away from snap after this.
Daantje
CC BY-SA 4.0
2022-09-25T11:48:52.667Z
2022-09-25T11:48:52.667Z
tiny0little
<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>

CC BY-SA 4.0
2021-04-02T13:36:50.877Z
Hi Asad Hayat, which version of Bitcoin Core are you running?
Murch
CC BY-SA 4.0
2021-04-02T16:23:12.363Z
Bitcoin Core version v0.21.0 (Latest, Installed Yesterday via snap)
Asad Hayat
CC BY-SA 4.0
2021-04-02T18:06:07.447Z
Try without snap once. Don't have enough reputation to comment.
BlueTang
<bitcoin-core><ubuntu><datadir>
Ubuntu Linux, Unable to set bitcoin datadir to a folder in different drive
Asad Hayat
# Ubuntu Linux, Unable to set bitcoin datadir to a folder in different drive

(Asked by: username_0 on 2021-04-02)

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

**Tags:** bitcoin-core, ubuntu, datadir

> **Comments:**
> **username_1**: Hi username_0, which version of Bitcoin Core are you running?  
> **username_0**: Bitcoin Core version v0.21.0 (Latest, Installed Yesterday via snap)  
> **username_2**: Try without snap once. Don't have enough reputation to comment.  

---

## 2 answers

### Answer by username_3 on 2021-04-02. Score: 2 | Accepted answer

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.


---

### Answer by username_4 on 2022-09-25. Score: 2

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

more info [here](https://askubuntu.com/questions/1328448/official-bitcoin-client-fails-to-start-with-error-initializing-settings-failed)

> **Comments:**
> **username_5**: This helped me getting back online, thx! I'm moving away from snap after this.  

---

