[MacOSX] Mounting NFS resources
Once you succeeded to export your NFS resources
Learn more:
Exporting NFS resources for Mac clients
Opening each time a shell to mount a resource can quickly become tiresome.
As the
niload command, which normally allows you to copy Unix configuration files to the netinfo manager, does not seem to work for the fstab (MacOS 10.3.8), the solution is to edit netinfo manually.
In the root of the domain /, you’ll find the
mounts directory
In this directory, it will be needed that you create a subdirectory for each new mount point.
For the sub-directory, property and name is default
and must be modified:
ip.du.serveur:/path/exported
Add 3 other properties:
dir -> /Users/adrien/nfs (specific mount point)
type -> nfs (fs type)
opts -> hard,intr (mount options)
Restart your PC
When using MacOSX enter the following command
sudo kill -1 $(cat /var/run/automount.pid)
For the niload command to works properly with fstab, it is necessary that the line in the file /etc/fstab is complete.
The following command line
192.168.8.3:/export /Users/adrien/nfs nfs2 rw,user,noauto,hard,intr 0 0
Willl be correctly executed. But if If the
pathno or
dumpfreq (the last two columns) are not filled in, nothing will be done.
To load your
fstab in netinfo:
sudo niload -m fstab / < /etc/fstab
After this procedure, verify in netinfo and you shall see the different properties that can be added.