user101395: I installed bitcoin core in windows 10 using ( Windows Subsystem for Linux ) . I installed ubuntu from the store and I used it to Install bitcoin core. The thing is everything was installed in the main hard disk C and it doesn't have enough space to download blocks. Is there a way to copy it to another partition (D partition because it has enough space) ? or while running bitcoind is there any way to run it with a specified path?
Ps: I hope the question is clear
Thank you

user86833: Make sure to stop bitcoind with bitcoin-cli stop, then move your data directory to a new folder and add the following line to your bitcoin.conf:
datadir=path/to/new/directory

This file should be somewhere in C:\Users\username\AppData\Roaming\Bitcoin\bitcoin.conf in Windows and ~/.bitcoin/bitcoin.conf in Linux.
As the user AntMor replied, you can also pass this configuration every time you run bitcoind.

101395: <p>I installed bitcoin core in windows 10 using ( Windows Subsystem for Linux ) . I installed ubuntu from the store and I used it to Install bitcoin core. The thing is everything was installed in the main hard disk C and it doesn't have enough space to download blocks. Is there a way to copy it to another partition (D partition because it has enough space) ? or while running bitcoind is there any way to run it with a specified path?</p>

<p>Ps: I hope the question is clear</p>

<p>Thank you</p>
 86833: <p>Make sure to stop bitcoind with <code>bitcoin-cli stop</code>, then move your data directory to a new folder and add the following line to your <code>bitcoin.conf</code>:</p>

<pre><code>datadir=path/to/new/directory
</code></pre>

<p>This file should be somewhere in <code>C:\Users\username\AppData\Roaming\Bitcoin\bitcoin.conf</code> in Windows and <code>~/.bitcoin/bitcoin.conf</code> in Linux.</p>

<p>As the user AntMor replied, you can also pass this configuration every time you run bitcoind.</p>
