Randomly Expressed

About

Welcome to my blog “randomly expressed”. I created this website to publish helpful tips. It’s mainly technology driven, but I will blog about other topics. I am a Unix sysadmin that is always looking to learn new things. My goal is to be able to share knowledge that others may find useful. xkcd.com

Continue Reading »

Contact

Connect With US

Connect with us on the following social networking sites.

Most Popular Posts.

Add Some Content to This Area

You should either deactivate this panel on the Theme Settings page, or add some content via the Widgets page in your WordPress dashboard.

MAC OSX NFS automount

By on September 27, 2018 in Technology with No Comments

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

Post a Comment

Your email address will not be published. Required fields are marked *

Top