Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getmntent(3)

fstab(5)

mount(8)



MTAB(5)                 COMMAND REFERENCE                 MTAB(5)



NAME
     mtab - mounted file system table

SYNOPSIS
     #include <mntent.h>
     #include <mtab.h>

DESCRIPTION
     The file /etc/mtab contains a table of devices mounted by
     the mount(8) command.  mount(8) adds entries to the table
     and umount(8) removes them.

     The table is a series of mtab structures, defined in
     <mtab.h>:

          struct mtab {
               char     m_path[32];          /* mounted on pathname */
               char     m_dname[32];         /* block device pathname */
               char     m_type[4];           /* read-only, quotas */
          };

     Each entry contains the null-padded name of the place where
     the special file is mounted, the null-padded name of the
     special file, and a type field, one of those defined in
     <fstab.h> .

     The special file has all its directories stripped away; that
     is, everything through the last `/' is thrown away.  The
     type field indicates if the file system is mounted read-
     only, read-write, or read-write with disk quotas enabled.

     This table is present only as information to users.  It does
     not matter to mount if there are duplicated entries nor to
     umount if a name cannot be found.

     The /etc/mtab file is structurally identical to the contents
     of /etc/fstab, described in fstab(5).  There are a number of
     lines of the form

          fsname    dir    type    opts    freq    passno

     Following is an example entry in the mtab file:

          /dev/xy0a / 4.2 rw,noquota 1 2

     The file is accessed by programs using getmntent(3) and by
     the system administrator using a text editor.

FILES
     /etc/mtab





Printed 3/13/89                                                 1





MTAB(5)                 COMMAND REFERENCE                 MTAB(5)



SEE ALSO
     getmntent(3), fstab(5), mount(8).





















































Printed 3/13/89                                                 2



%%index%%
na:240,84;
sy:324,478;
de:802,2054;
fi:2856,87;
se:3255,212;
%%index%%000000000094

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026