I have an EC2 instance that created on Amazon aws server, with a volume of 8G, and later created another volume of 800G so i could attach to my previous 8G volume. I then created a new filesystem and mounted the 800G volume on /opt/mountpoint directory by using this command
Assuming the new volume is /dev/xvdb:
$ mkfs.ext4 /dev/xvdb $ mkdir /opt/mountpoint $ mount /dev/xvdb /opt/mountpoint
At this point, my storage is available at /opt/mountpoint. I need to know how to add this new filesystem to /etc/fstab so that it gets mounted automatically on next boot ?