umount(2) System Calls Manual umount(2) umount, umount2 - (libc -lc) #include int umount(const char *target); int umount2(const char *target, int flags); umount() umount2() () target. (: CAP_SYS_ADMIN) . 2.1.116 umount2() umount() flags : MNT_FORCE ( 2.1.116) . . . 4.12 MNT_FORCE : 9p ( 2.6.16) ceph ( 2.6.34) cifs ( 2.6.12) fuse ( 2.6.16) lustre ( 3.11) NFS ( 2.1.116). MNT_DETACH ( 2.4.11) : . MNT_EXPIRE ( 2.6.8) . umount2() EAGAIN . . umount2() MNT_EXPIRE . MNT_FORCE MNT_DETACH. UMOUNT_NOFOLLOW ( 2.6.34) target . set-user-ID-root . . -1 errno . . . . EAGAIN umount2() MNT_EXPIRE . EBUSY target . EFAULT target . EINVAL target . EINVAL target mount_namespaces(7). EINVAL umount2() MNT_EXPIRE MNT_DETACH MNT_FORCE. EINVAL ( 2.6.34) umount2() flags. ENAMETOOLONG MAXPATHLEN. ENOENT . ENOMEM . EPERM . . MNT_DETACH MNT_EXPIRE glibc 2.11. umount() umount(device) ENOTBLK . 0.98p4 umount(dir) . 2.3.99-pre7 umount(device) umount(dir) ( ). umount() umount() . umount() . . MNT_DETACH . umount() mount(2) mount_flags MS_REC MS_PRIVATE umount(). mount(2), mount_namespaces(7), path_resolution(7), mount(8), umount(8) 3 . . : . 6.18 8 2026 umount(2)