here it is
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 931.5G 0 disk
├─sdb1 8:17 0 200M 0 part
└─sdb2 8:18 0 931.3G 0 part /media/pi/SPSSDT5
mmcblk0 179:0 0 14.9G 0 disk
├─mmcblk0p1 179:1 0 63M 0 part
├─mmcblk0p2 179:2 0 1K 0 part
├─mmcblk0p5 179:5 0 32M 0 part
├─mmcblk0p6 179:6 0 256M 0 part /boot
└─mmcblk0p7 179:7 0 14.6G 0 part /
and heres the other thing
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 7.6G 6.0G 57% /
devtmpfs 334M 0 334M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 25M 438M 6% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p6 253M 52M 201M 21% /boot
tmpfs 93M 4.0K 93M 1% /run/user/1000
/dev/sdb2 932G 39M 932G 1% /media/pi/SPSSDT5
Vadim
November 21, 2019, 9:06pm
22
You also will get the problem, your storage not 1TB but 900GB
Huh, weird. My drive is exactly 1000GB and not 1TiB, only 1TB.
Also don’t tell me to sudo rm -r / .
I’m not a linux noob.
Vadim
November 21, 2019, 9:08pm
25
file system also take place on HDD
Alexey
November 21, 2019, 9:08pm
26
Please, mount your drive statically via /etc/fstab
The name is not right too.
In your command you have used the /media/pi/mediadrive
, but in reality it’s /media/pi/SPSSDT5
Looks like a GUI automount
Maybe. I will mount it via /etc/fstab. Just give me a sec.
lmao im blanking
can you send the command over to mount it from /media to /etc/fstab please
im forgetting it
sorry
Vadim
November 21, 2019, 9:12pm
29
should be something like this
Mount your hard drive:
sudo fdisk /dev/sda
Then n
, p
, and Enter
until you exit out of the command
sudo mkfs.ext4 /dev/sda1 sudo mkdir /mnt/storagenode sudo mount /dev/sda1 /mnt/storagenode sudo nano /etc/fstab
Then add this line to the end:
/dev/sda1 /mnt/storagenode ext4 defaults 0 2
Save the /etc/fstab
( Ctrl-O
and confirm saving, then exit with Ctrl-X
)
sudo chown -R pi:pi /mnt/storagenode
Vadim
November 21, 2019, 9:13pm
30
it is with file system making, if you have file system need only part of this
weird error
fdisk: cannot open /media/pi/SPSSDT5: Is a directory
because my disk is still mounted in /media/pi
If you are looking for the ports that are being used by the actively running node, you can use:
sudo docker inspect storagenode --format='{{json .}}' | jq ".NetworkSettings.Ports"
If you are looking for the ports that your host OS has open for connections, you can use:
sudo netstat -lt
Vadim
November 21, 2019, 9:17pm
34
sudo umount /media/pi/SPSSDT5
more acurate
I did that. Now what do I do? I’m bad at Linux
Vadim
November 21, 2019, 9:22pm
36
Now mount disk, what file system you have ther ext4?
Never mind, i figured it out… im formatting the disk curretnly.
Aight, I did all the steps you told me to.
Vadim
November 21, 2019, 9:43pm
39
now if you mounted it to /mnt/storegenode you need change path in config
–mount type=bind,source="/mnt/storagenode/",destination=/app/config \
Vadim
November 21, 2019, 9:44pm
40
i hope you stoped, your previus docker already