mtab

From Wikipedia, the free encyclopedia

The mtab (contraction of mounted file systems table) file is commonly found on Unix-like systems and lists the mounted file systems. Typically, mtab is in a format similar to that of fstab (file system table, a file specifying where devices should be mounted and providing information to assist this process) and is automatically edited when the mount command is used to indicate which filesystems are in use and how they are being used.

If a filesystem is manually mounted, mtab will contain an entry similar to what would be needed in fstab to automatically mount the filesystem.

/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

[edit] See also

Languages