<p>I mounted my external disk to wrong directory (wanted it to be ~/bitcoinData) , instead ended up creating a directory on SD card ( /home/pi/bitcoinData ) and now SD card (root) is full. i cannot seem to delete SD card bitcoinData directory (permission denied). how do i fix this? and link hdd to correct directory? </p>

CC BY-SA 4.0
2019-10-04T05:42:11.500Z
Pass `-datadir=/path/to/folder/` in the command line when starting bitcoind.
Ugam Kamat
CC BY-SA 4.0
2019-10-04T09:11:28.640Z
For a change in the directory, I agree with @UgamKamat but I think the problem not is correlated with bitcoin core but the permission user in your raspberry pi. try a command to the terminal with `sudo rm -r path/bitcoin`
vincenzopalazzo
CC BY-SA 4.0
2019-10-06T00:32:38.833Z
i have resolved this, i believe it was a user permissions issue. thanks
gaiameta
CC BY-SA 4.0
2021-01-21T16:32:14.457Z
@gaiameta if you post a well-written answer with steps to solve it could help others and earn you addition rep on this site.
qxotk
<bitcoin-core><raspberry-pi>
Help linking External Storage for bitcoin data using Raspberry Pi?
gaiameta
# Help linking External Storage for bitcoin data using Raspberry Pi?

(Asked by: username_0 on 2019-10-04)

I mounted my external disk to wrong directory (wanted it to be ~/bitcoinData) , instead ended up creating a directory on SD card ( /home/pi/bitcoinData ) and now SD card (root) is full. i cannot seem to delete SD card bitcoinData directory (permission denied). how do i fix this? and link hdd to correct directory?

**Tags:** bitcoin-core, raspberry-pi

> **Comments:**
> **username_1**: Pass `-datadir=/path/to/folder/` in the command line when starting bitcoind.  
> **username_2**: For a change in the directory, I agree with @UgamKamat but I think the problem not is correlated with bitcoin core but the permission user in your raspberry pi. try a command to the terminal with `sudo rm -r path/bitcoin`  
> **username_0**: i have resolved this, i believe it was a user permissions issue. thanks  
> **username_3**: @username_0 if you post a well-written answer with steps to solve it could help others and earn you addition rep on this site.  

---

## 0 answers

