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

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

e.g., sudo echo ‘/dev/nvme1n1 /data ext4 defaults,nofail 0 2’ >> /etc/fstab sudo mount –all

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