Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mount(ADM) — Xenix 2.3.4g

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

umount(ADM)

mnt(C)

mount(S)

mnttab(F)

default(F)



     MOUNT(ADM)               XENIX System V                MOUNT(ADM)



     Name
          mount - Mounts a file structure.

     Syntax
          /etc/mount [ [ -r ] special-device directory ]

     Description
          mount announces to the system that a removable file
          structure is present on special-device. The file structure
          is mounted on directory. The directory must already exist;
          it becomes the name of the root of the newly mounted file
          structure.  directory should be empty.  If directory
          contains files, they will appear to have been removed while
          the directory is mounted and reappear when the directory is
          unmounted.

          The mount and umount commands maintain a table of mounted
          devices.  If each special device is invoked without any
          arguments, mount displays the name of the device, and the
          directory name of the mounted file structure, whether the
          file structure is read-only, and the date it was mounted.

          The -r option mounts the device read-only.  Physically
          write-protected file structures must be mounted in this way
          or errors occur when access times are updated, whether or
          not any explicit write is attempted.

          umount removes the removable file structure previously
          mounted on device special-device.

     Files
          /etc/mnttab         Mount table

          /etc/default/filesys
                              Filesystem data

     See Also
          umount(ADM), mnt(C), mount(S), mnttab(F), default(F)

     Diagnostics
          mount issues a warning if the file structure to be mounted
          is currently mounted under another name.

          Busy file structures cannot be dismounted with umount. A
          file structure is busy if it contains an open file or some
          user's working directory.

     Notes
          Only the super-user can use the mount command.

          Some degree of validation is done on the file structure,
          however it is generally unwise to mount corrupt file



     Page 1                                           (printed 2/7/91)





     MOUNT(ADM)               XENIX System V                MOUNT(ADM)



          structures.

          Be warned that when in single-user mode, the commands that
          look in /etc/mnttab for default arguments (for example df,
          ncheck, quot, mount, and umount) give either incorrect
          results (due to a corrupt /etc/mnttab from a non-shutdown
          stoppage) or no results (due to an empty mnttab from a
          shutdown stoppage).

          When multi-user, this is not a problem; /etc/rc initializes
          /etc/mnttab to contain only /dev/root and subsequent mounts
          update it appropriately.

          The mount(ADM) and umount(ADM) commands use a lock file to
          guarantee exclusive access to /etc/mnttab.  The commands
          which just read it (those mentioned above) do not, so it is
          possible that they may hit a window, which is corrupt. This
          is not a problem in practice since mount and umount are not
          frequent operations.

          When mounting a file system on a floppy disk you need not
          use the same directory each time. However, if you do, the
          full pathnames for the files are consistent with each use.

          Floppy disks must be unprotected (no write-protect tab) to
          be mounted as a filesystem unless the -r option is used.
          Always unmount filesystems on floppy disks before removing
          them from the floppy drive.  Failure to do so requires
          running fsck the next time the disk is mounted .


























     Page 2                                           (printed 2/7/91)



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