DEV Community

leroykayanda
leroykayanda

Posted on

Attaching an EFS volume to a linux instance

# Installing the NFS client
apt-get -y install nfs-common

mkdir /efs

sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-<REDACED>.efs.af-south-1.amazonaws.com:/ /efs

# permanently mount
echo "fs-<REDACED>.efs.af-south-1.amazonaws.com:/ /efs nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport,_netdev 0 0" | sudo tee -a /etc/fstab
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs