<p>That tutorial sucks. </p>

<p>Better seek generic instructions on how to mount external HDD to user's home directory. </p>

<p>Say you're Joe, you'd use <code>sudo</code> to add a user called <code>bitcoin</code>. </p>

<p>Then mount /dev/hda1 (or whatever it is) to /home/bitcoin, configure /etc/fstab, reboot, log in as Joe and make sure it works (<code>df</code>).</p>

<p>Then login as bitcoin user, make sure you're in /home/bitcoin (where you should be), download (or just install) Bitcoin Core, and start it. You don't need any config files (but you can add rpcusername and rpcpassword), as by default everything will be stored under <code>/home/bitcoin/.bitcoin/</code>. </p>

<p>Joe now can use a wallet that connects to Bitcoin Core (executed by bitcoin user).</p>

CC BY-SA 3.0
2017-11-30T05:27:36.413Z
2017-11-30T05:27:36.413Z
whatever
<p>I configured a non-pruned bitcoin full node on a RaspberryPi 3 using this tutorial - <a href="http://raspnode.com/diyBitcoin.html" rel="nofollow noreferrer">http://raspnode.com/diyBitcoin.html</a></p>

<p>I am using a 1TB external HDD to store the blockchain. I synced the full blockchain on my laptop and transferred it to this external HDD. </p>

<p>I am able to mount this external HDD as per the instructions in the above tutorial under the folder <code>~/bitcoinData</code> and have also setup the automount.</p>

<p>However, even when I run <code>bitcoind</code> using the arguments <code>bitcoind -datadir=/home/pi/bitcoinData -daemon</code>, it still is using the default <code>~/.bitcoin</code> (on the RPi SD Card) to download the blockchain from scratch even though the full blockchain is available in the mounted drive.</p>

<p>I tried to mount bind the two directories in <code>/etc/fstab/</code> using <code>/home/pi/bitcoinData    /home/pi/.bitcoin       none    bind    0       0</code>
but still the same issue occurs. Any idea why bitcoind is not using the mounted drive to download the blockchain inspite of the argument <code>datadir=/home/pi/bitcoinData</code>?</p>

CC BY-SA 3.0
2017-05-08T06:14:11.473Z
The mount command is unclear, perhaps paste your fstab. Normally you mount a device (/dev/sda1) under a directory... Then: is bitcoin.conf in ~/.bitcoin? (and not in ~/bitcoinData). Did you try to give the parameter to bitcoind ("-datadir=/home/pi/bitcoinData")?
pebwindkraft
<bitcoind><datadir>
bitcoind not using correct directory inspite of datadir argument
hex17or
# bitcoind not using correct directory inspite of datadir argument

(Asked by: username_0 on 2017-05-07)

I configured a non-pruned bitcoin full node on a RaspberryPi 3 using this tutorial - <http://raspnode.com/diyBitcoin.html>

I am using a 1TB external HDD to store the blockchain. I synced the full blockchain on my laptop and transferred it to this external HDD.

I am able to mount this external HDD as per the instructions in the above tutorial under the folder `~/bitcoinData` and have also setup the automount.

However, even when I run `bitcoind` using the arguments `bitcoind -datadir=/home/pi/bitcoinData -daemon`, it still is using the default `~/.bitcoin` (on the RPi SD Card) to download the blockchain from scratch even though the full blockchain is available in the mounted drive.

I tried to mount bind the two directories in `/etc/fstab/` using `/home/pi/bitcoinData /home/pi/.bitcoin none bind 0 0`
but still the same issue occurs. Any idea why bitcoind is not using the mounted drive to download the blockchain inspite of the argument `datadir=/home/pi/bitcoinData`?

**Tags:** bitcoind, datadir

> **Comments:**
> **username_1**: The mount command is unclear, perhaps paste your fstab. Normally you mount a device (/dev/sda1) under a directory... Then: is bitcoin.conf in ~/.bitcoin? (and not in ~/bitcoinData). Did you try to give the parameter to bitcoind ("-datadir=/home/pi/bitcoinData")?  

---

## 1 answers

### Answer by username_2 on 2017-11-30. Score: 0 | Accepted answer

That tutorial sucks.

Better seek generic instructions on how to mount external HDD to user's home directory.

Say you're Joe, you'd use `sudo` to add a user called `bitcoin`.

Then mount /dev/hda1 (or username_2 it is) to /home/bitcoin, configure /etc/fstab, reboot, log in as Joe and make sure it works (`df`).

Then login as bitcoin user, make sure you're in /home/bitcoin (where you should be), download (or just install) Bitcoin Core, and start it. You don't need any config files (but you can add rpcusername and rpcpassword), as by default everything will be stored under `/home/bitcoin/.bitcoin/`.

Joe now can use a wallet that connects to Bitcoin Core (executed by bitcoin user).


---

