Go to main content

Managing Network File Systems in Oracle® Solaris 11.4

Exit Print View

Updated: August 2021
 
 

How to Mount a File System From the Command Line

Mounting a file system from the command line is often performed to test a new mount point. This type of mount enables temporary access to a file system that is not available through the automounter. You can unmount the file system with the umount command or by rebooting the local system.

  1. Become an administrator.

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

  2. Mount the file system.
    mount -F nfs -o specific-options resource mount-point

    For example:

    # mount -F nfs -o ro bee:/export/share/local /mnt

    For more information, see the mount_nfs(8) man page.

    In this example, the /export/share/local file system from the server bee is mounted read-only on /mnt on the local system.


    Caution  - The mount command does not provide warnings about invalid options. The command silently ignores any options that cannot be interpreted. To prevent unexpected behavior, verify all of the options that you use.