Mounting NFS filesystems using /etc/fstab on OS X 10.5
From OS X Scientific Computing
Contents |
[edit]
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.
[edit]
Restart the Automounter
If you haven't messed with anything, you can probably skip this step, but for the record,
sudo automount -cv
[edit]
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
[edit]
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

