unmount(2) unmount(2)NAME unmount - remove a file system SYNOPSIS unmount(name) char *name; DESCRIPTION unmount is used to unmount all non-System V file systems. umount is used to unmount System V file systems only (see umount(2)). unmount announces to the system that the directory name is no longer to refer to the root of a mounted file system. The directory name reverts to its ordinary interpretation. STATUS MESSAGES AND VALUES The unmount command returns 0 if the action occurred; -1 if the directory is inaccessible or does not have a mounted file system, or if there are active files in the mounted file system. The unmount command can fail with one of the following errors: EINVAL The caller is not the superuser. EINVAL name is not the root of a mounted file system. EBUSY A process is holding a reference to a file located on the file system. LIMITATIONS The error codes are in a state of disarray; too many errors appear to the caller as one value. SEE ALSO fsmount(2), umount(2), mount(3) January 1992 1