pub fn mount_filesystem(
    filesystem_name: &str,
    device_name: &str,
    dir_name: &str
) -> Result<(String, String)>
Expand description

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