Unix and Linux Discussions Tagged with umount |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
2,391 |
Shell Programming and Scripting |
|
|
|
1 |
6,695 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
9,918 |
Shell Programming and Scripting |
|
|
|
14 |
19,292 |
Solaris |
|
|
|
8 |
54,568 |
Linux |
|
|
|
3 |
6,734 |
HP-UX |
|
|
|
1 |
4,560 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
36,879 |
HP-UX |
|
|
|
3 |
9,928 |
Solaris |
|
|
|
10 |
43,665 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,809 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
31,963 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
2,336 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,676 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,480 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
10,627 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
5,559 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
17,393 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,229 |
UNIX for Dummies Questions & Answers |
umount(3) Library Functions Manual umount(3)
NAME
umount - Unmounts a file system
LIBRARY
System V Compatibility Library (libsys5.a)
SYNOPSIS
#include <sys/mount.h>
int umount(
char *spec );
PARAMETERS
spec Points to the pathname of the special file or file system to be unmounted.
DESCRIPTION
The umount() function unmounts a previously-mounted file system contained on the block special file pointed to by the spec parameter. When
the file system is unmounted, the directory mount point where the file system was mounted returns to its normal interpretation.
The umount() function can only be invoked by the superuser.
NOTES
Two umount() functions are supported by the Tru64 UNIX operating system: the BSD umount() and the System V umount(). The default umount()
function is the BSD umount(). To use the version of umount() documented on this reference page, you must link with the libsys5 library
before you link with libc.
RETURN VALUE
The umount() function returns 0 (zero) if the file system was successfully unmounted. Otherwise, -1 is returned and errno is set to indi-
cate the error.
ERRORS
If the umount() function fails, errno may be set to one of the following values:
[EPERM] The effective user ID of the calling process is not root.
[ENOENT] The spec parameter points to a pathname that does not exist.
[ENOTDIR] A component of the path prefix of spec is not a directory.
[ENOTBLK] The device identified by spec is not a block-special device.
[ENXIO] The device identified by spec does not exist.
[EBUSY] A file on the device pointed to by the spec parameter is busy.
[EINVAL] The device pointed to by the spec parameter is not mounted.
RELATED INFORMATION
Commands: mount(8) delim off
umount(3)