<p>I successfully downloaded the Bitcoin blockchain on an external hard drive (as well as git repository). It was working and syncing just fine. I haven't used in a month or so, now the blockchain won't continue the download (starts download from beginning) even though I specified the datadir and blockdir. I tried the usual solutions such as setting the path of <code>blocks</code> and <code>datadir</code> (to the path in the external HDD). None of them work. I tried running the CLI and the GUI, same problem. It doesn't install it in the correct path.</p>
<p>Also, when it was reinstalling the whole blockchain, it puts the new blocks folder in the original blockdir (as a nested folder).</p>
<p>Am I missing a step?</p>
<p>Do I have to mount the HDD to the home directory? it is currently in <code>/media</code></p>
<p>I am using Ubuntu 22.10</p>
<p>This is the datadir and blocksdir in bitcoin.conf file</p>
<pre><code>datadir=/media/kibnakamoto/kntc/work/Bitcoin/
blocksdir=/media/kibnakamoto/kntc/work/Bitcoin/blocks/
</code></pre>
<p>I run the bitcoin-qt using the following command directory
<code>/media/kibnakamoto/kntc/work/Bitcoin/src/qt/bitcoin-qt -conf=/media/kibnakamoto/kntc/work/bitcoin.conf</code></p>
<p>This sets the <code>datadir</code> to <code>/media/kibnakamoto/kntc/work/Bitcoin/blocks</code> and <code>blocksdir</code> to <code>/media/kibnakamoto/kntc/work/Bitcoin/blocks/blocks</code></p>
<p>(<code>kntc</code> is the HDD name)</p>
<p>I have tried only setting <code>datadir</code> instead of both <code>blocksdir</code> and <code>datadir</code></p>

CC BY-SA 4.0
2023-04-16T12:29:32.070Z
Remove the transaction index from your bitcoind options and share drive format info. Have you tried setting only datadir (no blockdir)?
Mercedes
CC BY-SA 4.0
2023-04-16T12:56:16.863Z
@Mercedes I updated my question with more data. Hope that helps!
Kibnakamoto
CC BY-SA 4.0
2023-04-17T13:39:33.380Z
You should share drive format info. You are using one same directory for data and source, that's uncommon, use a different directory for data and source, specially in case you don't understand Git. Don't specify blocksdir until a simpler configuration is working.
Mercedes
<bitcoind><synchronization><linux>
Bitcoin blockchain doesn't continue installation
Kibnakamoto
# Bitcoin blockchain doesn't continue installation

(Asked by: username_0 on 2023-04-16)

I successfully downloaded the Bitcoin blockchain on an external hard drive (as well as git repository). It was working and syncing just fine. I haven't used in a month or so, now the blockchain won't continue the download (starts download from beginning) even though I specified the datadir and blockdir. I tried the usual solutions such as setting the path of `blocks` and `datadir` (to the path in the external HDD). None of them work. I tried running the CLI and the GUI, same problem. It doesn't install it in the correct path.

Also, when it was reinstalling the whole blockchain, it puts the new blocks folder in the original blockdir (as a nested folder).

Am I missing a step?

Do I have to mount the HDD to the home directory? it is currently in `/media`

I am using Ubuntu 22.10

This is the datadir and blocksdir in bitcoin.conf file

```
datadir=/media/username_0/kntc/work/Bitcoin/
blocksdir=/media/username_0/kntc/work/Bitcoin/blocks/

```

I run the bitcoin-qt using the following command directory
`/media/username_0/kntc/work/Bitcoin/src/qt/bitcoin-qt -conf=/media/username_0/kntc/work/bitcoin.conf`

This sets the `datadir` to `/media/username_0/kntc/work/Bitcoin/blocks` and `blocksdir` to `/media/username_0/kntc/work/Bitcoin/blocks/blocks`

(`kntc` is the HDD name)

I have tried only setting `datadir` instead of both `blocksdir` and `datadir`

**Tags:** bitcoind, synchronization, linux

> **Comments:**
> **username_1**: Remove the transaction index from your bitcoind options and share drive format info. Have you tried setting only datadir (no blockdir)?  
> **username_0**: @username_1 I updated my question with more data. Hope that helps!  
> **username_1**: You should share drive format info. You are using one same directory for data and source, that's uncommon, use a different directory for data and source, specially in case you don't understand Git. Don't specify blocksdir until a simpler configuration is working.  

---

## 0 answers

