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.

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.

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