DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using NFS on a client

Mounting NFS resources with the mount command

To mount a remote resource, provided the resource is shared and you can reach the server over the network, use the mount command. This may be done any time during client operations. However, you must be a privileged user to use mount.

To mount NFS resources, do the following:

  1. Create a mount point for the remote resource using the mkdir command.


    NOTE: As with a local mount, if you mount a remote resource on an existing directory that contains files and subdirectories, the contents of the directory are obscured.

  2. The syntax of the mount command, as it relates to an NFS mount, is:

    mount [-F nfs] [-o specific_options] {special | mount_point}

    mount [-F nfs] [-o specific_options] special mount_point

    Use the first form if you have entries in the /etc/vfstab file. See the mount(1Mnfs) manual page for details.

Resources accessed through the mount command stay mounted unless you unmount them with the umount command or exit init state 3. Also, if you exit and reenter init state 3, the resource will no longer be mounted (unless you edited the vfstab file to mount the resource automatically).

When you mount an NFS resource, we suggest that you do the following:

See ``Examples: mounting resources'' for an illustration of the mount command in use.

Hard and soft mounts

NFS supports two types of mounts -- hard mounts and soft mounts. If a mount is a hard mount, an NFS request affecting any part of the mounted resource is issued repeatedly until the request is satisfied (for example, the server crashes and comes back up at a later time). When a mount is a soft mount, an NFS request returns an error if it cannot be satisfied (for example, the server is down), then quits.

Examples: mounting resources


NOTE: The -F nfs option specified in these examples is not strictly required and could be omitted. Here it serves merely as a reminder of the filesystem type.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004