Difference between revisions of "Automount (OS X)"

From The System Administrator Zone
(/etc/hosts)
Line 20: Line 20:
  
 
<pre>
 
<pre>
#  nidump hosts /
+
#  nidump hosts /  
 
127.0.0.1 localhost
 
127.0.0.1 localhost
 
255.255.255.255 broadcasthost
 
255.255.255.255 broadcasthost
 
#
 
#
 
</pre>
 
</pre>
 
+
Create a /etc/hosts file with the name of the systems you want added and update the database.
 
+
<pre>
 
+
niload hosts . < /etc/hosts
 +
</pre>
  
 
=== Links to Automount Information and Notes ===
 
=== Links to Automount Information and Notes ===

Revision as of 14:49, 20 March 2013

/etc/fstab

# nidump fstab . > /etc/fstab
  • Column One: Remote mount point
  • Column Two: Local access point -- a symbolic link to the actual local mount point
    • /private/var/automount contains the real mount point
    • /Network/Servers is recommended for the link location as the links will be visible in Network:Servers in the Finder.
  • Column Three: Protocol for file system: afp, hfs, nfs, smbfs, etc.
  • Column Four: options - the net option flags that it is not a static file system
# niload -m fstab . < /etc/fstab

/etc/hosts

#  nidump hosts / 
127.0.0.1	localhost
255.255.255.255	broadcasthost
#

Create a /etc/hosts file with the name of the systems you want added and update the database.

niload hosts . < /etc/hosts

Links to Automount Information and Notes

Persistent NFS Automounting Under OS X 10.3