Functions

Makes a new file system on a specified device. e.g., sudo mkfs -t ext4 /dev/nvme1n1 ref. See https://github.com/cholcombe973/block-utils/blob/master/src/lib.rs for other commands. ref. https://stackoverflow.com/questions/45167717/mounting-a-nvme-disk-on-aws-ec2

Mounts the file system to the specified directory. And updates “/etc/fstab” to auto remount in case of instance reboot. e.g., sudo mount /dev/nvme1n1 /data -t ext4 ref. See https://github.com/cholcombe973/block-utils/blob/master/src/lib.rs for other commands. ref. https://stackoverflow.com/questions/45167717/mounting-a-nvme-disk-on-aws-ec2

Updates “/etc/fstab” to auto remount in case of instance reboot. The output is the contents of the “fstab” file.