I am using an Ubuntu 16.04 EC2 from AWS on c5d.2xlarge HW. It comes with a 200 GB SSD called
I am able to mount this drive using:
$ sudo mkfs.ext4 -E nodiscard /dev/nvme1n1 $ sudo mount -o discard /dev/nvme1n1 /home/ubuntu
To try to get it to automatically mount I also added to the
/dev/nvme1n1 /home/ubuntu/spda ext4 defaults,users,nofail,discard 0 2
It does not seem to automatically mount when I stop / start the instance. I am not sure how to fix / debug.
When I mount it manually the folder created belongs to the root and I can't access it as a user.
My goal is to be able to start the instance and already have the drive mounted and accessible to the users.