| 1 | .TH MOUNT 2 |
| 2 | .SH NAME |
| 3 | mount, umount \- mount or remove file system |
| 4 | .SH SYNOPSIS |
| 5 | .B mount(special, name, rwflag) |
| 6 | .br |
| 7 | .B char *special, *name; |
| 8 | .PP |
| 9 | .B umount(special) |
| 10 | .br |
| 11 | .B char *special; |
| 12 | .SH DESCRIPTION |
| 13 | .I Mount |
| 14 | announces to the system that a removable file system has |
| 15 | been mounted on |
| 16 | the block-structured special file |
| 17 | .I special; |
| 18 | from now on, references to file |
| 19 | .I name |
| 20 | will refer to |
| 21 | the root file on the newly mounted file system. |
| 22 | .I Special |
| 23 | and |
| 24 | .I name |
| 25 | are pointers to null-terminated strings |
| 26 | containing the appropriate path names. |
| 27 | .PP |
| 28 | .I Name |
| 29 | must exist already. |
| 30 | .I Name |
| 31 | must be a directory (unless the root of the mounted file system |
| 32 | is not a directory). |
| 33 | Its old contents |
| 34 | are inaccessible while the file system |
| 35 | is mounted. |
| 36 | .PP |
| 37 | The |
| 38 | .I rwflag |
| 39 | argument determines whether |
| 40 | the file system can be written on; if it is 0 writing |
| 41 | is allowed, if non-zero no writing is done. |
| 42 | Physically write-protected and magnetic |
| 43 | tape file systems must be mounted read-only or |
| 44 | errors will occur when access times are updated, |
| 45 | whether or not any |
| 46 | explicit write is attempted. |
| 47 | .PP |
| 48 | .I Umount |
| 49 | announces to the system that the |
| 50 | .I special |
| 51 | file is no longer to contain a removable file system. |
| 52 | The associated file reverts to its ordinary interpretation. |
| 53 | .SH "SEE ALSO" |
| 54 | mount(1) |
| 55 | .SH DIAGNOSTICS |
| 56 | .I Mount |
| 57 | returns 0 if the action occurred; \-1 if |
| 58 | .I special |
| 59 | is inaccessible or not an appropriate file; if |
| 60 | .I name |
| 61 | does not exist; if |
| 62 | .I special |
| 63 | is already mounted; if |
| 64 | .I name |
| 65 | is in use; or if |
| 66 | there are already too many |
| 67 | file systems mounted. |
| 68 | .PP |
| 69 | .I Umount |
| 70 | returns 0 if the action occurred; \-1 if |
| 71 | if the special file is inaccessible or |
| 72 | does not have a mounted file system, |
| 73 | or if there are active files in the mounted |
| 74 | file system. |
| 75 | .SH BUGS |
| 76 | If a file containing holes |
| 77 | (unallocated blocks) |
| 78 | is read, even on a file system mounted read-only, |
| 79 | the system will attempt to fill in the holes |
| 80 | by writing on the device. |
| 81 | .SH "ASSEMBLER (PDP-11)" |
| 82 | (mount = 21.) |
| 83 | .br |
| 84 | .B sys mount; special; name; rwflag |
| 85 | .PP |
| 86 | (umount = 22.) |
| 87 | .br |
| 88 | .B sys umount; special |