mount
Updated: September 28, 2024
Mount can list and also add filesystems into an operating system via directories.
Mount makes use of the following files:
FILE | Description |
---|---|
/etc/fstab | filesystem table |
/etc/mtab | table of mounted fs. This file also used by umount |
/etc/mtab~ | lock file |
/etc/mtab.tmp | temporary file |
/etc/filesystems | list of fs types to try |
Mount
-t # type of fs uses.
-l # displays all fs mounted
-a # mounts all devices described in /etc/fstab
-T # describes an alt fstab file
-r # read only mode mounted
Return Codes
Code Number | Description |
---|---|
0 | success |
1 | incorrect invocation or permissions |
2 | system error ( out of memory, cannot fork, no more loop dev) |
4 | internal mount bug was encountered |
8 | interrupted by user |
16 | problems writing or locking /etc/mtab |
32 | mount failure |
64 | at least on mount succeeded but not all |