Become superuser.
Also, there must be a mount point on the local system to mount a file system. A mount point is a directory to which the mounted file system is attached.
Make sure the resource (file or directory) is available from a server.
To mount an NFS file system, the resource must be made available on the server by using the share command. See System Administration Guide, Volume 3 for information on how to share resources.
Mount the NFS file system by using the mount command.
# mount -F nfs [-o mount-options] server:/directory mount-point |
-o mount-options |
Specifies mount options that you can use to mount an NFS file system. See Table 36-3 for the list of commonly used mount options or mount_nfs(1M) for a complete list of options. |
server:/directory |
Specifies the server's host name that contains the shared resource, and the path to the file or directory to mount. |
mount-point |
Specifies the directory on which to mount the file system. |
The following example mounts the /export/packages directory on /mnt from the server pluto.
# mount -F nfs pluto:/export/packages /mnt |