System Administration Guide: Basic Administration

Examples—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.