I have 2 drives on my computer.

256 GB which has Linux installed on it and 2 TB secondary drive

I want the data folder from bitcoin to save to the bigger drive. Would this command input do that? I based it on the commands from the picture.

cd /dev/sda1

mkdir /data/bitcoin

cd /home

sudo chown bitcoin:bitcoin /dev/sda1/data/bitcoin

sudo su - bitcoin

ln -s /dev/sda1/data/bitcoin /home/bitcoin/.bitcoin

ls -la

Reply to this note

Please Login to reply.

Discussion

You are mixing up absolute and relative paths. Hint: Absolute paths start with "/"

The filesystem root "/" is on your 256GB drive, and you can mount other drives into it.

Mounting basically means taking a folder and saying "this folder is drive XYZ now".

So, two things: When you change to your external drive and then mkdir /data/bitcoin, you create a folder on your 256GB drive - leave out the first slash and it will be a relative path, seen from the folder you're currently in (your external drive)

Second, /dev is just a folder that lists your connected devices, but (at least for hard drives) doesn't give you access. So, you have to mount the drive first (the default path depends on your linux flavor, could be /mnt or /media e.g.)

When the drive is mounted, you can *cd* to that path and create your folder.

Then you can create your symlink (ln -s) there.

Hope that helps a bit!

So what would be the best way to make sure the blocks get stored on the large hard drive?

I have a 2T drive with Linux, but couldn't find a good guide on how to install bitcoin core and run a node.

The instructions on bitcoin.org are poor and the vids I dearched on YT are trash.

Yeah I’ve been trying to find a guide that a beginner could do. So far these are the ones I’ve found that I think I can follow. The raspi one needs a little modifying if you are using an old computer instead.

https://raspibolt.org/guide/bitcoin/bitcoin-client.html

https://minibolt.info/guide/bitcoin/bitcoin-client.html

Also I’m watching ministry of nodes on YouTube. The unbuntu series

Thanks. I will check it out