Managing File Systems in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Unmount a File System

Use the following procedure to unmount a file system.

  1. Ensure that you have met the prerequisites listed in Prerequisites for Unmounting Oracle Solaris File Systems.
  2. Unmount the file system.
    # umount /mount-point

    where /mount-point is the name of the file system that you want to unmount.

    This name can be one of the following:

    • The directory name where the file system is mounted

    • The device name path of the file system

    • The resource for an NFS file system

    • The loopback directory for an LOFS file system

Example 2-13  Unmounting a File System

The following example shows how to unmount a legacy UFS file system:

# umount /legacy

The following example shows how to forcibly unmount the UFS /legacy file system:

# umount -f /legacy

The following example shows to unmount all ZFS file systems:

# zfs umount -a

All file systems are unmounted, except for those file systems that are busy.