Difference between revisions of "Automount (OS X)"

From The System Administrator Zone
(Links to Automount Information and Notes)
(Links to Automount Information and Notes)
 
Line 39: Line 39:
  
 
=== Links to Automount Information and Notes ===
 
=== Links to Automount Information and Notes ===
 +
 +
 +
[http://mactechnotes.blogspot.com/2005/08/mac-os-x-as-nfs-client_31.html Mac OS X 10.4 as an NFS Client]
  
 
[http://scottlab.ucsc.edu/~wgscott/xtal/wiki/index.php/NFS_on_OS_X_10.4_and_earlier NFS on OS X 10.4 and earlier]
 
[http://scottlab.ucsc.edu/~wgscott/xtal/wiki/index.php/NFS_on_OS_X_10.4_and_earlier NFS on OS X 10.4 and earlier]

Latest revision as of 12:29, 21 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 names of the systems you want added and update the database.

niload hosts . < /etc/hosts

This will not remove existing items. It will only add / update the items listed in the /etc/hosts file.

To Activate Changes

To make the services reread the database, you need to kill -HUP the daemon.

sudo killall -HUP launchd

Links to Automount Information and Notes

Mac OS X 10.4 as an NFS Client

NFS on OS X 10.4 and earlier

HOWTO Use niload to add hosts

Persistent NFS Automounting Under OS X 10.3