<blockquote>
  <p>Should I keep hoping that the missing coins will return to the wallet somehow, >maybe after it downloads the blockchain again?</p>
</blockquote>

<p>No, they will not return, since you deleted the whole directory, particularly your <code>wallet.dat</code>. You may recover the previous wallet by copying the original <code>wallet.dat</code> to the directory with current <code>wallet.dat</code>, followed by running this command:</p>

<pre><code>bitcoind -rescan 
</code></pre>

<p>This will scan the balance for wallet.dat that is stored in Bitcoin data directory, on inlux <code>~/.bitcoin/</code></p>

<p>EDIT: from (Nate Eldredge) -rescan would only work after downloading the whole blockchain. </p>

<blockquote>
  <p>Is it normal for the blockchain to grow to that size?</p>
</blockquote>

<p>Yes, bitcoin blockchain grows exponentionaly as the amount of transactions still increases, <a href="https://blockchain.info/charts/blocks-size" rel="nofollow">https://blockchain.info/charts/blocks-size</a>. However there are some light-weight clients that require just few MB of disk space. Keep in mind that these depend on 3rd party servers that provide you with information about unspent transaction and your balance, look for Multibit or Electrum.</p>

CC BY-SA 3.0
2015-02-02T15:45:32.397Z
-rescan will only work after the block chain has been downloaded again, and at that point it may not be necessary.
Nate Eldredge
CC BY-SA 3.0
2015-02-02T15:59:26.287Z
Thank you Marek and Nate. I will add some more space to this machine.
Nick M
CC BY-SA 3.0
2015-02-02T15:35:08.937Z
2015-02-02T16:02:55.327Z
2015-02-02T16:02:55.327Z
Marek
<p>The blockchain is around 30 gigabytes. Unfortunately, if you want to use a full node client like bitcoind, you need all of that data. It's possible to prune the blockchain to just the unspent transactions, but the core devs have not implemented this yet on bitcoind. So no, you can't reduce the blockchain size as you need all of that data for a properly running bitcoind.</p>

<p>There are alternatives like <a href="https://electrum.org/" rel="nofollow">electrum</a> which use something called SPV to make the footprint of the application much smaller. This does require that you trust electrum servers, but it's very hard to fake that data, so it's fairly safe.</p>

CC BY-SA 3.0
2015-02-02T15:55:29.100Z
Can't use electrum, it doesn't seem to offer a RPC API. Sorry I forgot to mention that bit.
Nick M
CC BY-SA 3.0
2015-02-02T16:01:46.973Z
Weird, all the SPV wallets don't seem to have an RPC API. You can use stratum protocol to talk to electrum servers.
Jimmy Song
CC BY-SA 3.0
2015-02-02T15:35:00.550Z
2015-02-02T15:35:00.550Z
Jimmy Song
<p>I'm running bitcoind (086) on a dedicated linux machine with about 35Gb of disk space. Earlier today I discovered the machine ran out of space (blockchain was 33 gigs) and proceeded to delete the whole directory. Now all bitcoins in the wallet are missing, balance shows 0, although I did back up and restore the wallet.dat file.</p>

<p>Is it normal for the blockchain to grow to that size?</p>

<p>Is there another way to clean it up periodically, say, via a cron job?</p>

<p>Should I keep hoping that the missing coins will return to the wallet somehow, maybe after it downloads the blockchain again?</p>

<p>TIA!</p>

<bitcoind><linux>
Bitcoind linux disk usage
Nick M
# Bitcoind linux disk usage

(Asked by: username_0 on 2015-02-02)

I'm running bitcoind (086) on a dedicated linux machine with about 35Gb of disk space. Earlier today I discovered the machine ran out of space (blockchain was 33 gigs) and proceeded to delete the whole directory. Now all bitcoins in the wallet are missing, balance shows 0, although I did back up and restore the wallet.dat file.

Is it normal for the blockchain to grow to that size?

Is there another way to clean it up periodically, say, via a cron job?

Should I keep hoping that the missing coins will return to the wallet somehow, maybe after it downloads the blockchain again?

TIA!

**Tags:** bitcoind, linux


---

## 2 answers

### Answer by username_1 on 2015-02-02. Score: 0 | Accepted answer

Should I keep hoping that the missing coins will return to the wallet somehow, >maybe after it downloads the blockchain again?

No, they will not return, since you deleted the whole directory, particularly your wallet.dat. You may recover the previous wallet by copying the original wallet.dat to the directory with current wallet.dat, followed by running this command:
bitcoind -rescan 

This will scan the balance for wallet.dat that is stored in Bitcoin data directory, on inlux ~/.bitcoin/
EDIT: from (username_2) -rescan would only work after downloading the whole blockchain. 

Is it normal for the blockchain to grow to that size?

Yes, bitcoin blockchain grows exponentionaly as the amount of transactions still increases, https://blockchain.info/charts/blocks-size. However there are some light-weight clients that require just few MB of disk space. Keep in mind that these depend on 3rd party servers that provide you with information about unspent transaction and your balance, look for Multibit or Electrum.

> **Comments:**
> **username_2**: -rescan will only work after the block chain has been downloaded again, and at that point it may not be necessary.  
> **username_0**: Thank you username_1 and Nate. I will add some more space to this machine.  

---

### Answer by username_3 on 2015-02-02. Score: 0

The blockchain is around 30 gigabytes. Unfortunately, if you want to use a full node client like bitcoind, you need all of that data. It's possible to prune the blockchain to just the unspent transactions, but the core devs have not implemented this yet on bitcoind. So no, you can't reduce the blockchain size as you need all of that data for a properly running bitcoind.

There are alternatives like [electrum](https://electrum.org/) which use something called SPV to make the footprint of the application much smaller. This does require that you trust electrum servers, but it's very hard to fake that data, so it's fairly safe.

> **Comments:**
> **username_0**: Can't use electrum, it doesn't seem to offer a RPC API. Sorry I forgot to mention that bit.  
> **username_3**: Weird, all the SPV wallets don't seem to have an RPC API. You can use stratum protocol to talk to electrum servers.  

---

