This are the partitions at the disk
Device Start End Sectors Size Id Type Flags
/dev/sda1 0 1953423674 1953423675 931.5G 83 Linux native
/dev/sda2 1953423675 1953520064 96390 47.1M 82 Linux swap u
/dev/sda3 0 1953520064 1953520065 931.5G 5 Whole disk
and when I type this command:
sudo mkfs.ext4 /dev/sda1
I get this error:
root@raspberrypi:/home/pi# sudo mkfs.ext4 /dev/sda1
mke2fs 1.44.5 (15-Dec-2018)
The file /dev/sda1 does not exist and no size was specified.
Whats wrong?
this is the followed guide
https://support.storj.io/hc/en-us/articles/360026612332-Install-storagenode-on-Raspberry-Pi3
Alexey
June 29, 2020, 10:49pm
2
Seems you partitioned your disk in a different program, not fdisk
.
If this is an empty disk, then better to start over
sudo fdisk /dev/sda
Then d
and Enter
and repeat until it say Partition 1 has been deleted.
Then n
and Enter
, p
and Enter
, then hit Enter
until got a prompt
Command (m for help):
Now q
and Enter
.
Create a fs:
sudo mkfs.ext4 /dev/sda
I fixed the guide to use a whole disk.
2 Likes
thanks now i am getting this error at docker
docker: Error response from daemon: invalid mount config for type “bind”: invalid mount path: ‘</home/pi/identity>’ mount path must be absolute.
this is my docker:
docker run -d --restart unless-stopped --stop-timeout 300
-p 28967:28967
-p 127.0.0.1:14002:14002
-e WALLET=“00000000”
-e EMAIL="user@example.com "
-e ADDRESS=“192.168.0.9:28967”
-e STORAGE=“1TB”
–mount type=bind,source="</home/pi/identity>",destination=/app/identity
–mount type=bind,source="</dev/sda2>",destination=/app/config
–name storagenode storjlabs/storagenode:latest
remove the <
and >
and replace /dev/sda2
with its mountpoint and preferably create a sub folder on that partition.
Alexey
Split this topic
June 30, 2020, 11:32pm
5