top of page
DBA Genesis Docs logo

Mount EFS on EC2 Instance

Simplify data sharing by mounting EFS on your AWS EC2 instance.

You might have created an Elastic File System (EFS) and now would like to mount it on EC2 instance.


Get EFS link

Check the EFS details and you should get a link which looks like below

fs-06b8137f.efs.us-east-2.amazonaws.com:/

Mount EFS on EC2

Create a directory on your server where you will mount the EFS

mkdir /efs

Mount the efs on /efs directory

mount -t nfs4 fs-06b8137f.efs.us-east-2.amazonaws.com:/ /efs

Check if mounting is done properly

df -hT /efs

Add to /etc/fstab

Make the mounting permanent under /etc/fstab file

vi /etc/fstab

fs-06b8137f.efs.us-east-2.amazonaws.com:/ /efs          nfs4     _netdev     0     0

Become a top notch dba.png
bottom of page