Mtab

Last updated

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

Contents

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/ext3rw,relatime,errors=remount-ro00 proc/procprocrw,noexec,nosuid,nodev00 /sys/syssysfsrw,noexec,nosuid,nodev00 varrun/var/runtmpfsrw,noexec,nosuid,nodev,mode=075500 varlock/var/locktmpfsrw,noexec,nosuid,nodev,mode=177700 udev/devtmpfsrw,mode=075500 devshm/dev/shmtmpfsrw00 devpts/dev/ptsdevptsrw,gid=5,mode=62000 lrm/lib/modules/2.6.24-16-generic/volatiletmpfsrw00 securityfs/sys/kernel/securitysecurityfsrw00 gvfs-fuse-daemon/home/alice/.gvfsfuse.gvfs-fuse-daemonrw,nosuid,nodev,user=alice00

See also

References