System Administration Guide: Devices and File Systems

ProcedureHow to Unmount a File System

Use the following procedure to unmount a file system, except for the root (/), /usr, or /var file systems.


Note –

The root (/), /usr, and /var file systems can be unmounted only during a shutdown, since the system needs these file systems to function.


Steps
  1. Make sure that you have met the prerequisites listed in Prerequisites for Unmounting File Systems.

  2. Unmount the file system.


    # umount /mount-point
    

    /mount-point is the name of the file system that you want to unmount. This 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 a LOFS file system


Example 17–10 Unmounting a File System

The following example shows how to unmount a local home file system.


# umount /export/home

The following example shows how to unmount the file system on slice 7.


# umount /dev/dsk/c0t0d0s7

The following example shows how to forcibly unmount the /export file system.


# umount -f /export
# 

The following example shows how to unmount all file systems in the /etc/vfstab file, except for the root (/), /proc, /var, and /usr file systems.


# umountall

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