mtab

The mtab (contraction of mounted file systems table) file is a system information file, commonly found on Unix-like systems.

Overview

This file lists all currently mounted filesystems along with their initialization options. mtab has a lot in common with fstab, the distinction being that the latter is a configuration file listing which available filesystems should be mounted on which mount points at boot time, whereas the former lists currently mounted ones, which can include manually mounted ones not listed in fstab. Therefore mtab is usually in a format similar to that of fstab. Most of the time it is possible to directly use lines from mtab in fstab.[1][2]

The file commonly resides in /etc/mtab. In some systems it is a symlink to /proc/mounts.

Example

Sample mtab contents:

 /dev/sdb1 / ext3 rw,relatime,errors=remount-ro 0 0
 proc /proc proc rw,noexec,nosuid,nodev 0 0
 /sys /sys sysfs rw,noexec,nosuid,nodev 0 0
 varrun /var/run tmpfs rw,noexec,nosuid,nodev,mode=0755 0 0
 varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
 udev /dev tmpfs rw,mode=0755 0 0
 devshm /dev/shm tmpfs rw 0 0
 devpts /dev/pts devpts rw,gid=5,mode=620 0 0
 lrm /lib/modules/2.6.24-16-generic/volatile tmpfs rw 0 0
 securityfs /sys/kernel/security securityfs rw 0 0
 gvfs-fuse-daemon /home/alice/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=alice 0 0
gollark: They don't have three... I think the word is linearly independent dimensions, no.
gollark: Initiating orbital dimensionality reduction strike against Fiona.
gollark: The triangles could reasonably be considered 0 (not actually linear axes), 1 (just one... unit of data?), 2 (they exist in 2D) or 3 (they can vary in three directions, but not freely).
gollark: Yes. Anyway, it is clearly a good* model.
gollark: (note: may not contain 100 axes or things. I did not count them)

See also

References

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.