• Arun Kumar

Mount EFS on 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



16 views

Recent Posts

See All

Give Oracle user permissions to connect remotely

On a aws server, you need to connect via EC2-USER and then perform switch user to connect Oracle user. Use below commands to allow Oracle user connect the aws EC2 server remotely Connect EC2 server Co

Connect EC2 Server Without Keypair

You can enable keyless access on EC2 server that will allow you to connect to the server with username and password. Once you enable keyless access, you need not provide key file location under putty

How to Setup SSH on EC2 Instances

I have created two EC2 instances on AWS. I created a key pair for each of them. I downloaded the .pem private keys and converted them into .ppk format. I can connect to each of my ec2 instances using

  • Facebook
  • Twitter
  • YouTube
  • Instagram

© 2020 by DBA Genesis

Feedback