https://help.ubuntu.com/community/Fstab
sudo lsblk # list block devices
sudo blkid # Get block device UUID
sudo mount -a # will try to mount everything and throw errors if fstab is screwed up.
sudo mkfs -t ext4 /dev/xvdf
sudo mkdir /mnt/my-data
sudo mount /dev/xvdf /mnt/my-data
sudo blkid /dev/xvdf # To get the uuid to use in fstab
[Device] [Mount Point] [File System Type] [Options] [Dump] [Pass]
- dump is usually set to zero if your not using the dump command
- Pass fsck scanning order on boot can be left as zero
UUID="6d8ee36c-9252-400a-a92c-7df89d111b3f" /backup ext4 defaults 0 0 UUID="6d8ee36c-9252-400a-a92c-7df89d111b3f" /backup ext4 defaults,noatime,nodiratime 0 0 # For database drives