To mount a remote resource automatically, use the /etc/vfstab file, which allows you to mount a local file system automatically when you boot the system. If you edit the file to include a remote file system or directory, the remote resource is mounted automatically when you take the system to init state 3.
See the vfstab(4) manual page for a description of the fields in the /etc/vfstab file.
Assume you want to mount the resource /usr/share from a server
named ``frontoffice.'' You want the resource to be mounted automatically
every time you take your system to init state 3. The directory is an
NFS resource. You want to mount the directory on the mount point
/usr/local/tmp with read-only access. First create the mount
point by typing the following:
Make sure the mode and permissions of the new mount point match those of the resource you want to mount on it. Then edit the /etc/vfstab file, using any supported text editor. The file entry should look like this:
frontoffice:/usr/share - /usr/local/tmp nfs - yes ro