Installing Storj Node on Ubuntu

Please, execute sudo mount -a
Have you created a /mnt/storj by the way?
If not, please do it:

sudo mkdir /mnt/sdb1

mario@mario-System-Product-Name:~$ sudo mount -a
mount: /mnt/sdb1: mount point does not exist.
mario@mario-System-Product-Name:~$

Yes, you need to create it

sudo mkdir /mnt/sdb1

Then

sudo mount -a

no i didnt ill do it now

success this did it …where do i go from here

mario@mario-System-Product-Name:~$ df -HT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 7.3G 0 7.3G 0% /dev
tmpfs tmpfs 1.5G 1.8M 1.5G 1% /run
/dev/sda2 ext4 235G 11G 213G 5% /
tmpfs tmpfs 7.4G 0 7.4G 0% /dev/shm
tmpfs tmpfs 5.3M 4.1k 5.3M 1% /run/lock
tmpfs tmpfs 7.4G 0 7.4G 0% /sys/fs/cgroup
/dev/loop1 squashfs 59M 59M 0 100% /snap/core18/1988
/dev/loop0 squashfs 9.6M 9.6M 0 100% /snap/canonical-livepatch/99
/dev/loop2 squashfs 104M 104M 0 100% /snap/core/11081
/dev/loop3 squashfs 230M 230M 0 100% /snap/gnome-3-34-1804/66
/dev/loop4 squashfs 69M 69M 0 100% /snap/gtk-common-themes/1514
/dev/loop5 squashfs 54M 54M 0 100% /snap/snap-store/518
/dev/loop6 squashfs 33M 33M 0 100% /snap/snapd/11036
/dev/sda1 vfat 536M 8.3M 528M 2% /boot/efi
tmpfs tmpfs 1.5G 70k 1.5G 1% /run/user/1000
/dev/loop7 squashfs 65M 65M 0 100% /snap/core20/1026
/dev/loop8 squashfs 6.6M 6.6M 0 100% /snap/curl/47
/dev/sdb1 ext4 4.0T 93M 3.8T 1% /mnt/sdb1

Do you have an access?

ls /mnt/sdb1

If not, depending on how you would run your docker node - with sudo or without - you can change the owner of the disk to your current user (in case of not using sudo).
Since you tried without sudo, I can assume that you added your current user to the docker group.
In this case you can create a folder for your storagenode on the disk and change the owner to your user:

sudo mkdir /mnt/sdb1/storagenode
sudo chown mario /mnt/sdb1/storagenode

Now please, check it:

echo 1 > /mnt/sdb1/storagenode/1.txt
cat /mnt/sdb1/storagenode/1.txt
rm /mnt/sdb1/storagenode/1.txt

There should not be any error.

mario@mario-System-Product-Name:~$ ls /mnt/sdb1
config.yaml lost+found storage
mario@mario-System-Product-Name:~$

looks like i have access …do i run the other commands?

Did you have running that node earlier? I see the storage and config.yaml

mario@mario-System-Product-Name:~$ echo 1 > /mnt/sdb1/storagenode/1.txt
bash: /mnt/sdb1/storagenode/1.txt: No such file or directory
mario@mario-System-Product-Name:~$ cat /mnt/sdb1/storagenode/1.tx
cat: /mnt/sdb1/storagenode/1.tx: No such file or directory
mario@mario-System-Product-Name:~$ rm /mnt/sdb1/storagenode/1.txt
rm: cannot remove ‘/mnt/sdb1/storagenode/1.txt’: No such file or directory

no i didnt have it running earlier

You didn’t create a /mnt/sdb1/storagenode, you missed a command

mkdir /mnt/sdb1/storagenode

But you have folder storage and config file there. Then please, remove them:

rm -rf /mnt/sdb1/storage
rm /mnt/sdb1/config.yaml

mario@mario-System-Product-Name:~$ rm -rf /mnt/sdb1/storage
rm: cannot remove ‘/mnt/sdb1/storage’: Permission denied

mario@mario-System-Product-Name:~$ rm -rf /mnt/sdb1/storage
rm: cannot remove ‘/mnt/sdb1/storage’: Permission denied
mario@mario-System-Product-Name:~$ rm /mnt/sdb1/config.yaml
rm: remove write-protected regular file ‘/mnt/sdb1/config.yaml’? yes
mario@mario-System-Product-Name:~$

sudo rm -rf /mnt/sdb1/storage

If the test with new folder /mnt/sdb1/storagenode went ok, you can setup your node:

docker run --rm -e SETUP="true" \
--mount type=bind,source=/home/mario/.local/share/storj/identity/storagenode,destination=/app/identity \
--mount type=bind,source=/mnt/sdb1/storagenode,destination=/app/config \
--name storagenode storjlabs/storagenode:latest

mario@mario-System-Product-Name:~$ /mnt/sdb1/storagenode
bash: /mnt/sdb1/storagenode: Is a directory

mkdir /mnt/sdb1/storagenode
echo 1 > /mnt/sdb1/storagenode/1.txt
cat /mnt/sdb1/storagenode/1.txt
rm /mnt/sdb1/storagenode/1.txt

mario@mario-System-Product-Name:~$ echo 1 > /mnt/sdb1/storagenode/1.txt
mario@mario-System-Product-Name:~$ cat /mnt/sdb1/storagenode/1.txt
1
mario@mario-System-Product-Name:~$ rm /mnt/sdb1/storagenode/1.txt

Ok, now you can setup the node

docker run --rm -e SETUP="true" \
--mount type=bind,source=/home/mario/.local/share/storj/identity/storagenode,destination=/app/identity \
--mount type=bind,source=/mnt/sdb1/storagenode,destination=/app/config \
--name storagenode storjlabs/storagenode:latest