Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mtab(5) [v7 man page]

MTAB(5) 							File Formats Manual							   MTAB(5)

NAME
mtab - mounted file system table DESCRIPTION
Mtab resides in directory /etc and contains a table of devices mounted by the mount command. Umount removes entries. Each entry is 64 bytes long; the first 32 are the null-padded name of the place where the special file is mounted; the second 32 are the null-padded name of the special file. The special file has all its directories stripped away; that is, everything through the last `/' is thrown away. This table is present only so people can look at it. It does not matter to mount if there are duplicated entries nor to umount if a name cannot be found. FILES
/etc/mtab SEE ALSO
mount(1) MTAB(5)

Check Out this Related Man Page

MOUNT(2)							System Calls Manual							  MOUNT(2)

NAME
mount, umount - mount or remove file system SYNOPSIS
mount(special, name, rwflag) char *special, *name; umount(special) char *special; DESCRIPTION
Mount announces to the system that a removable file system has been mounted on the block-structured special file special; from now on, ref- erences to file name will refer to the root file on the newly mounted file system. Special and name are pointers to null-terminated strings containing the appropriate path names. Name must exist already. Name must be a directory (unless the root of the mounted file system is not a directory). Its old contents are inaccessible while the file system is mounted. The rwflag argument determines whether the file system can be written on; if it is 0 writing is allowed, if non-zero no writing is done. Physically write-protected and magnetic tape file systems must be mounted read-only or errors will occur when access times are updated, whether or not any explicit write is attempted. Umount announces to the system that the special file is no longer to contain a removable file system. The associated file reverts to its ordinary interpretation. SEE ALSO
mount(1) DIAGNOSTICS
Mount returns 0 if the action occurred; -1 if special is inaccessible or not an appropriate file; if name does not exist; if special is already mounted; if name is in use; or if there are already too many file systems mounted. Umount returns 0 if the action occurred; -1 if if the special file is inaccessible or does not have a mounted file system, or if there are active files in the mounted file system. ASSEMBLER
(mount = 21.) sys mount; special; name; rwflag (umount = 22.) sys umount; special MOUNT(2)
Man Page