Managing File Systems in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Mount an NFS File System (mount Command)

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Create a mount point for the file system to be mounted, if necessary.
    # mkdir /mount-point

    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.

  3. Ensure that 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. For information on how to share resources, see Managing Network File Systems in Oracle Solaris 11.2.

  4. Mount the NFS file system.
    # mount -F nfs [-o mount-options] server:/directory /mount-point
Example 2-10  Mounting an NFS File System (mount Command)

The following example shows how to mount the /export/packages directory on /mnt from the server pluto.

# mount -F nfs pluto:/export/packages /mnt