The /etc/mnttab file contains details of all the file systems mounted on the local computer. This file contains information which is generated by the mount command.
Each line contains the following information, which is separated by an arbitrary number of blanks and/or tabulators:
Format
resource | mountp | fstype | spec-options | time |
Absolute path name of the mounted file system or, in the case of bs2fs file systems, mounted BS2000 files in wildcard syntax. For bs2fs file systems the entry differs from the specification in the mount command as follows:
Example:
generates the following entry in /etc/mnttab:
Absolute path name of the mount point.
File system type.
Options as specified in the mount command.
Mount time, specified in seconds since 1/1/1970 |
Entries in the /etc/mnttab file are deleted again if the umount or umountall command is executed for corresponding file systems or file system types.
Example
Enter the following in the POSIX shell: cat /etc/mnttab
/dev/root / ufs rw,suid 1196069614 /proc /proc proc rw 1196069614 /dev/fd /dev/fd fdfs rw 1196069614 /dev/dsk/3 /var ufs suid,rw,noquota 1196069614 /dev/dsk/4 /home/froede ufs suid,rw,noquota 1196069615 /dev/dsk/10 /home/gast ufs suid,rw,noquota 1196069615 /dev/dsk/5 /home/bach ufs suid,rw,noquota 1196069621 /dev/dsk/2 /home/bach/mount99 ufs suid,rw,noquota 1196069621 /dev/dsk/23 /bs2fscont ufs bs2fscontainer,suid,rw,noquota 1196070061 :V70A:$BACH.ASS.*.S /home/bach/bs2.1 bs2fs ftyp=binary 1196084245 :V70A:$BACH.CCC.*.C /home/bs2.2 bs2fs ftyp=text 1196084250 :V70A:$BACH.PLAMLIB* /home/bach/bs2.2 bs2fs ftyp=textbin 1196084255 :V70A:$BACH.SEM*.C /home/bs2000 bs2fs ftyp=text 1196084261