Line | |
---|
1 | .TH MOUNT 2
|
---|
2 | .SH NAME
|
---|
3 | mount, umount \- mount or umount a file system
|
---|
4 | .SH SYNOPSIS
|
---|
5 | .ft B
|
---|
6 | .nf
|
---|
7 | #include <unistd.h>
|
---|
8 | #include <sys/mount.h>
|
---|
9 |
|
---|
10 | int mount(char *\fIspecial\fP, char *\fIname\fP, int \fIflag\fP)
|
---|
11 | int umount(char *\fIname\fP)
|
---|
12 | .fi
|
---|
13 | .ft P
|
---|
14 | .SH DESCRIPTION
|
---|
15 | .B Mount()
|
---|
16 | tells the system that the file system
|
---|
17 | .I special
|
---|
18 | is to be mounted on the file
|
---|
19 | .IR name ,
|
---|
20 | effectively overlaying
|
---|
21 | .I name
|
---|
22 | with the file tree on
|
---|
23 | .IR special .
|
---|
24 | .I Name
|
---|
25 | may of any type, except that if the root of
|
---|
26 | .I special
|
---|
27 | is a directory, then
|
---|
28 | .I name
|
---|
29 | must also be a directory.
|
---|
30 | .I Special
|
---|
31 | must be a block special file, except for loopback mounts. For loopback
|
---|
32 | mounts a normal file or directory is used for
|
---|
33 | .IR special ,
|
---|
34 | which must be seen as the root of a virtual device.
|
---|
35 | .I Flag
|
---|
36 | is 0 for a read-write mount, 1 for read-only.
|
---|
37 | .PP
|
---|
38 | .B Umount()
|
---|
39 | removes the connection between a device and a mount point,
|
---|
40 | .I name
|
---|
41 | may refer to either of them. If more than one device is mounted on the
|
---|
42 | same mount point then unmounting at the mount point removes the last mounted
|
---|
43 | device, unmounting a device removes precisely that device. The unmount will
|
---|
44 | only succeed if none of the files on the device are in use.
|
---|
45 | .PP
|
---|
46 | Both calls may only be executed by the super-user.
|
---|
47 | .SH "SEE ALSO"
|
---|
48 | .BR mount (1),
|
---|
49 | .BR umount (1).
|
---|
50 | .SH AUTHOR
|
---|
51 | Kees J. Bot (kjb@cs.vu.nl)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.