<p>You have to provide the same path to <code>bitcoind</code> as you did for <code>bitcoin-qt</code>. Let's say you gave <code>/path/to/data</code> to <code>bitcoin-qt</code>, you should start <code>bitcoind</code> with <code>./bitcoin -datadir=/path/to/data</code>. Otherwise it will download all blocks in the default dir (On Linux is <code>~/.bitcoin</code>)</p>

CC BY-SA 4.0
2023-03-30T16:09:45.510Z
2023-03-30T16:09:45.510Z
Davidson Souza
<p>I downloaded the bitcoin blockchain with</p>
<pre><code>./bitcoin-qt
</code></pre>
<p>When I first executed the command I could tell him to use a mounted hard drive. All the data goes there. So far so good.
Now I want to experiment also with</p>
<pre><code>./bitcoind
</code></pre>
<p>With bitcoind its running through all blocks one by one and gives me updateTip: new best, height, version, log2_work, tx, date, progress and cache. And when I execute the command</p>
<pre><code>df 
</code></pre>
<p>all the data goes on the SD-card and not on the hard drive.
What is the bitcoind doing there and how can I tell it to use the hard drive and not the SD-Card? Because there is not much space left</p>
<p>Thanks in advance</p>

CC BY-SA 4.0
2023-03-30T15:42:13.070Z
This may answer your question: [What's the difference between bitcoind and bitcoin-qt? Different commands?](https://bitcoin.stackexchange.com/a/13369/87158)
deyw
CC BY-SA 4.0
2023-03-30T16:02:20.897Z
Not really an answer to my question what is happening even though I downloaded the blockchain already. Don’t know where the data is stored when executing bitcoind (its not the blockchain)
Luca F
<bitcoin-core><bitcoind><bitcoin-qt-setup>
Why does bitcoind store block data in a different directory than bitcoin-qt does?
Luca F
# Why does bitcoind store block data in a different directory than bitcoin-qt does?

(Asked by: username_0 on 2023-03-30)

I downloaded the bitcoin blockchain with
./bitcoin-qt

When I first executed the command I could tell him to use a mounted hard drive. All the data goes there. So far so good.
Now I want to experiment also with
./bitcoind

With bitcoind its running through all blocks one by one and gives me updateTip: new best, height, version, log2_work, tx, date, progress and cache. And when I execute the command
df 

all the data goes on the SD-card and not on the hard drive.
What is the bitcoind doing there and how can I tell it to use the hard drive and not the SD-Card? Because there is not much space left
Thanks in advance

**Tags:** bitcoin-core, bitcoind, bitcoin-qt-setup

> **Comments:**
> **username_1**: This may answer your question: [What's the difference between bitcoind and bitcoin-qt? Different commands?](https://bitcoin.stackexchange.com/a/13369/87158)  
> **username_0**: Not really an answer to my question what is happening even though I downloaded the blockchain already. Don’t know where the data is stored when executing bitcoind (its not the blockchain)  

---

## 1 answers

### Answer by username_2 on 2023-03-30. Score: 2 | Accepted answer

You have to provide the same path to `bitcoind` as you did for `bitcoin-qt`. Let's say you gave `/path/to/data` to `bitcoin-qt`, you should start `bitcoind` with `./bitcoin -datadir=/path/to/data`. Otherwise it will download all blocks in the default dir (On Linux is `~/.bitcoin`)


---

