Introduction:
This article show how to enable and use the USB drive in the ZPE Nodegrid. The Nodegrid recognizes EXT4 file system. Other file system may not be recognizable in the Nodegrid.
Having the USB thumb drive in the Nodegrid allows extended storage for logging files and storing any needed files, allows VMs and Docker container runs on the USB.
Steps:
When a new USB is connected to the Nodegrid, the Nodegrid OS may not recognized the file system and will not mount the thumb drive. use "lsblk" to check the thumb drive
- root@Nodegrid:~# lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- loop0 7:0 0 2G 0 loop /media/loopfs
- sda 8:0 0 29.8G 0 disk
- |-sda1 8:1 0 2M 0 part
- |-sda2 8:2 0 94M 0 part
- |-sda3 8:3 0 96.3M 0 part /media/hdCnf
- |-sda4 8:4 0 4.7G 0 part /
- |-sda5 8:5 0 95M 0 part /media/hdUser
- |-sda6 8:6 0 61M 0 part
- |-sda7 8:7 0 477M 0 part /boot
- `-sda8 8:8 0 24.4G 0 part /media/hdVar
- sdb 8:16 1 57.8G 0 disk
- `-sdb1 8:17 1 57.8G 0 part
Format the USB drive to EXT4 to be use in the Nodegrid.
root@Nodegrid:~# mkfs -t ext4 /dev/sdb1
Once the format have been completed, the USB needs to be reseated for the Nodegrid OS to mount the the USB thumb drive
- root@Nodegrid:~# df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/sda4 4.7G 1.7G 2.9G 36% /
- devtmpfs 1.9G 0 1.9G 0% /dev
- /dev/sda3 88M 27M 55M 33% /media/hdCnf
- /dev/sda8 24G 2.2G 21G 10% /media/hdVar
- /dev/sda5 87M 15K 80M 1% /media/hdUser
- /dev/loop0 2.0G 5.5M 1.9G 1% /media/loopfs
- cgroup 1.9G 0 1.9G 0% /sys/fs/cgroup
- /dev/sda7 477M 77M 401M 17% /boot
- default:ext-sto-zdk1njg4zdutntaymy00ytixlwjjndqtzmq2zgrkyjvmztji/f4726fdb-49b5-47e2-b551-f19d98ff802a 1.0P 0 1.0P 0% /var/local/file_manager/remote_file_system/extended_storage/son-bsr_220691018
- default:ext-sto-zdk1njg4zdutntaymy00ytixlwjjndqtzmq2zgrkyjvmztji/97a40e37-1489-444c-80da-4ea99c91d6eb 1.0P 0 1.0P 0% /var/local/file_manager/remote_file_system/extended_storage/Shared
- /dev/sdb1 57G 24K 54G 1% /run/media/sdb1
the drive is now recognized as /run/media/sdb1 in the Nodegrid OS root shell and also can be found in the Nodegrid Manager System::Toolkit "File Manager" folder "/home/admin_group/sdb1"