<p>I think you can copy the wallet.dat file if you want to run the bitcoin software on another drive/computer and import it there.</p>

<p><a href="https://bitcoin.stackexchange.com/questions/10974/import-wallet-dat-into-a-new-bitcoin-qt-client">Import wallet.dat into a new Bitcoin-Qt client</a></p>

CC BY-SA 3.0
2017-05-24T01:03:19.573Z
Any idea where to find this on linux?
Jovan Poursamadi
CC BY-SA 3.0
2017-05-24T06:22:14.773Z
`$HOME/.bitcoin` by default. See here on how to find the data directory on every supported OS: https://en.bitcoin.it/wiki/Data_directory
laanwj
CC BY-SA 3.0
2017-05-23T21:15:00.330Z
2017-05-23T21:15:00.330Z
kristianp
<p>You can set Bitcoin Core to run in "pruning mode" which will then keep only the last few blocks instead of the whole blockchain.</p>

<p>To enable pruning, you add the line </p>

<pre><code>prune=&lt;n&gt;
</code></pre>

<p>to your configuration file whereby you replace <code>&lt;n&gt;</code> with the number of megabytes of blockchain data you want to keep. The minimum is <code>550</code>. </p>

<p>The configuration file can be found in the <a href="https://bitcoin.stackexchange.com/q/4006/5406">Bitcoin data directory</a> by default it's found at <code>~/.bitcoin</code> on Linux. The configuration file is called <code>bitcoin.conf</code>. If the file doesn't exist yet, you can just create a text file by that name.</p>

<p>Also see:</p>

<ul>
<li><a href="https://bitcoin.stackexchange.com/q/37496/5406">How can I run bitcoind in pruning mode?</a></li>
<li><a href="https://bitcoin.stackexchange.com/q/4006/5406">Where is the data folder for Bitcoin-Qt?</a></li>
<li><a href="https://jlopp.github.io/bitcoin-core-config-generator/" rel="nofollow noreferrer">Jameson Lopp's Bitcoin Core Config File Generator</a></li>
</ul>

CC BY-SA 3.0
2017-05-24T00:58:47.657Z
Where exactly do I need to put the "prune=<N>" command? It mentions the command line but I'm afraid to say I'm not sure which one it's referring to. It also says I can add it into the bitcoin.conf file but when I do it and try to save it, it said that an error occurred while updating the file.
Jovan Poursamadi
CC BY-SA 3.0
2017-05-24T01:10:03.903Z
I found the console in the debug window. There is no command "prune" but there is "pruneblockchain" followed by a value. I set value "1000" and it told me "cannot prune blocks because node is not in prune mode".
Jovan Poursamadi
CC BY-SA 3.0
2017-05-24T01:57:33.467Z
It's a start-up parameter. Alternatively, you can put it in the bitcoin.conf. It doesn't work in the console.
Murch
CC BY-SA 3.0
2017-05-24T06:28:07.047Z
Adding that setting in `bitcoin.conf` is what I'd recommend - that makes it harder to forget to add it, which can result in start-up failures.
laanwj
CC BY-SA 3.0
2017-05-23T19:31:57.213Z
2017-05-24T14:13:14.070Z
2017-05-24T14:13:14.070Z
Murch
<p>As the title says, I have an interesting difficulty and have no idea how to resolve it. 
I installed bitcoin core on the linux partition of my macbook, but was not aware that it needed as much disk space as it did to update the blocks. It says it is "4 years and 40 weeks behind", and will only run for a short time before giving me the error that there is insufficient space on the disk.</p>

<p>This is a problem as I have already initiated a transfer of bitcoin from coinbase to the address provided to me by bitcoin core. </p>

<p>It says that recent transactions may not be visible until my wallet has finished synchronizing with the network, but I don't have sufficient space to do so. </p>

<p>I tried to use GParted to resize the partition, but it would not allow me to.</p>

<p>Any ideas??? It was quite a bit of money I have lost.</p>

<transactions><bitcoin-core><synchronization><linux><lost-bitcoins>
Bitcoin Core on a Linux partition on MacBook... Lost bitcoin due to insufficient disk space to update blocks
Jovan Poursamadi
# Bitcoin Core on a Linux partition on MacBook... Lost bitcoin due to insufficient disk space to update blocks

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

As the title says, I have an interesting difficulty and have no idea how to resolve it.
I installed bitcoin core on the linux partition of my macbook, but was not aware that it needed as much disk space as it did to update the blocks. It says it is "4 years and 40 weeks behind", and will only run for a short time before giving me the error that there is insufficient space on the disk.

This is a problem as I have already initiated a transfer of bitcoin from coinbase to the address provided to me by bitcoin core.

It says that recent transactions may not be visible until my wallet has finished synchronizing with the network, but I don't have sufficient space to do so.

I tried to use GParted to resize the partition, but it would not allow me to.

Any ideas??? It was quite a bit of money I have lost.

**Tags:** transactions, bitcoin-core, synchronization, linux, lost-bitcoins


---

## 2 answers

### Answer by username_1 on 2017-05-23. Score: 1

I think you can copy the wallet.dat file if you want to run the bitcoin software on another drive/computer and import it there.

[Import wallet.dat into a new Bitcoin-Qt client](https://bitcoin.stackexchange.com/questions/10974/import-wallet-dat-into-a-new-bitcoin-qt-client)

> **Comments:**
> **username_0**: Any idea where to find this on linux?  
> **username_2**: `$HOME/.bitcoin` by default. See here on how to find the data directory on every supported OS: https://en.bitcoin.it/wiki/Data_directory  

---

### Answer by username_3 on 2017-05-23. Score: 1

You can set Bitcoin Core to run in "pruning mode" which will then keep only the last few blocks instead of the whole blockchain.

To enable pruning, you add the line

```
prune=<n>

```

to your configuration file whereby you replace `<n>` with the number of megabytes of blockchain data you want to keep. The minimum is `550`.

The configuration file can be found in the [Bitcoin data directory](https://bitcoin.stackexchange.com/q/4006/5406) by default it's found at `~/.bitcoin` on Linux. The configuration file is called `bitcoin.conf`. If the file doesn't exist yet, you can just create a text file by that name.

Also see:

* [How can I run bitcoind in pruning mode?](https://bitcoin.stackexchange.com/q/37496/5406)
* [Where is the data folder for Bitcoin-Qt?](https://bitcoin.stackexchange.com/q/4006/5406)
* [Jameson Lopp's Bitcoin Core Config File Generator](https://jlopp.github.io/bitcoin-core-config-generator/)

> **Comments:**
> **username_0**: Where exactly do I need to put the "prune=<N>" command? It mentions the command line but I'm afraid to say I'm not sure which one it's referring to. It also says I can add it into the bitcoin.conf file but when I do it and try to save it, it said that an error occurred while updating the file.  
> **username_0**: I found the console in the debug window. There is no command "prune" but there is "pruneblockchain" followed by a value. I set value "1000" and it told me "cannot prune blocks because node is not in prune mode".  
> **username_3**: It's a start-up parameter. Alternatively, you can put it in the bitcoin.conf. It doesn't work in the console.  
> **username_2**: Adding that setting in `bitcoin.conf` is what I'd recommend - that makes it harder to forget to add it, which can result in start-up failures.  

---

