# Mtab

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Mtab
> Markdown URL: https://mediated.wiki/source/Mtab.md
> Source: https://en.wikipedia.org/wiki/Mtab
> Source revision: 1353625080
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{About||the Swedish railway company|Malmtrafik}}
{{Lowercase title}}
{{Use dmy dates|date=November 2020}}
The '''mtab''' ('''mounted file systems table''') file is a system information file, commonly found on [Unix-like](/source/Unix-like) systems.

==Overview==
This file lists all currently [mounted filesystems](/source/mount_(Unix)) along with their initialization options. <code>mtab</code> has a lot in common with <code>[fstab](/source/fstab)</code>, 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](/source/fstab). Most of the time it is possible to directly use lines from <code>mtab</code> in <code>fstab</code>.<ref>[https://www.gnu.org/s/libc/manual/html_node/Mount-Information.html Mount information]</ref><ref>[http://man.cat-v.org/unix_8th/5/mtab mtab manual page]</ref>

The file commonly resides in <code>[/etc](/source/%2Fetc)/mtab</code>. In some systems it is a symlink to /proc/mounts.

==Example==
Sample <code>mtab</code> contents:

<syntaxhighlight lang="sh">
/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
</syntaxhighlight>

==See also==
*<code>[df](/source/df_(Unix))</code>
*<code>[fstab](/source/fstab)</code>

==References==
{{Reflist}}

{{Unix commands}}

Category:Unix file system technology

---
Adapted from the Wikipedia article [Mtab](https://en.wikipedia.org/wiki/Mtab) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Mtab?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
