Run the following command to become root user.
sudo su -
Run the following commands to create the mount file and set the permission.
touch /etc/auto_nfs;chmod 644 /etc/auto_nfs
Add the following line to the file you just created /etc/auto_nfs
echo "/data -fstype=nfs,noowners,nolockd,noresvport,hard,bg,intr,rw,tcp,nfc nfs://nfs01.lax.aofl.com:/nfs/data/fastlane" >> /etc/auto_nfs
Run the following command to add the auto_nfs settings to the auto_master file. This sets up auto mount so it mounts on boot.
echo "/- auto_nfs -nobrowse,nosuid" >> /etc/auto_master
Run the following command to mount the NFS share
automount -cv
The following command will verify that the NFS is now mounted.
mac-pro:etc root# df -h /data
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
nfs01.lax.aofl.com:/nfs/data/fastlane 9.8Ti 5.7Ti 3.7Ti 61% 63676877 606625331 9% /data
Facebook Comments