Mounting NFS filesystems using /etc/fstab on OS X 10.5

From OS X Scientific Computing

Contents

Create an /etc/fstab file

sudo touch /etc/fstab

Populate it with entries such as

my.computer.com:/Users  /foobar nfs -i,-P,-b 0 0


 man fstab 

for details on what syntax to use for these entries.

Restart the Automounter

If you haven't messed with anything, you can probably skip this step, but for the record,

sudo automount -cv

Check it

cd /foobar

This should automount the remote file system as /foobar

df -h | grep foobar

should give output like

map -static                                                    0Bi        0Bi       0Bi    100%    /foobar
my.computer.com:/Users                            115Gi   84Gi   31Gi    73%    /foobar

Tweak for non-OS X filesystems

The good folks at Apple suggested I do the following to make automounts work for my linux and sun filesystems:

Change

AUTOMOUNTD_MNTOPTS=nosuid,nodev

in /etc/autofs.conf to

AUTOMOUNTD_MNTOPTS=nosuid,nodev,resvport






Back to NFS on OS X 10.5