Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mount(1m) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                mount(1m)



        _________________________________________________________________
        mount, umount
        mount and dismount file systems
        _________________________________________________________________


        SYNTAX

        /etc/mount
        /etc/mount -p
        /etc/mount -a[-fv][-t type ]
        /etc/mount [-frv] [-t type ] [-o  options ]

        /etc/umount [ -av ] [ fsname | dir ] ...


        DESCRIPTION

        File systems other than root (/) are considered removable because
        they can be either available or unavailable to users.  Mount and
        umount maintain a table of mounted file systems in /etc/mnttab,
        described in mnttab(4).  If invoked without an argument, mount
        displays the table.  Only a superuser can use umount to dismount
        file systems.  The mount command announces to the system that a
        file system fsname is to be attached to the file tree at the
        directory dir.  The directory dir must already exist.  It becomes
        the name of the root of the newly mounted file system.  The
        previous contents of dir are hidden until the file system fsname
        is unmounted.  In the case of an NFS mount, a colon (:) is used
        to separate the server hostname and the pathname of the directory
        on the server.

        The command umount announces to the system that the file system
        fsname previously mounted on directory dir should be removed.
        Either the file system name fsname or the mounted-on directory
        dir  may be used.

        If invoked with either the file system name or the directory
        mount point, but not both, mount mount searches /etc/fstab for an
        entry whose dir or fsname field matches the given argument.  For
        example, if /etc/fstab contains:

             /dev/dsk/usr  /usr  dg/ux  rw  1  1

        for local file systems, and contains

             titan:/usr/titan  /usr/titan  nfs  rw,hard  0  0

        for NFS file systems,

        then



        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                                mount(1m)



             mount /usr

        and      mount /dev/dsk/usr

        are shorthand for

             mount -t dg/ux -o rw  /dev/dsk/usr  /usr


        MOUNT OPTIONS

        -a   Attempt to mount all the file systems described in
             /etc/fstab.  In this case, fsname and dir are taken from
             /etc/fstab.  If a type is specified, only the file systems
             in /etc/fstab with that type will be mounted.

        -o   The next argument is a string that specifies mount options.
             Valid options are: ro, rw, hard, soft.  Options are
             separated by commas.  The options ro and rw stand for read-
             only and read-write; rw is the default.  Hard and soft
             options are used with remote mounts.  With a hard remote
             mount, mount tries forever if the mountd(1m) server does not
             respond.  Once the file system is mounted, access requests
             will retry forever if the nfsd(1m) server does not respond.
             Hard is the default.  With a soft remote mount, if the
             mountd(1m) server does not respond, mount forks a background
             copy to retry forever.  Once the soft mount completes,
             access requests will fail with [ETIMEDOUT] if the nfsd(1m)
             server does not respond.

        -r   Mount the specified file system read-only.  This is a
             shorthand for:

                  mount -o ro fsname dir

             Physically write-protected file systems must be mounted
             read-only.  If they are not mounted read-only, errors will
             occur when access times are updated.

        -t   The next argument is the file system type.  The accepted
             types are: dg/ux, nfs, and swap; see fstab(4) for a
             description of the legal file system types.

        -f   Fake a new /etc/mnttab entry, but do not actually mount any
             file systems.

        -p   Print the list of mounted file systems in a format suitable
             for use in /etc/fstab.

        -v   Verbose - mount displays a message indicating the file
             system being mounted.



        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)





                                                                mount(1m)



        UMOUNT OPTIONS

        -a   Attempt to unmount all the file systems currently mounted.
             In this case, fsname is taken from /etc/mnttab

        -v   Verbose - umount displays a message indicating the file
             system being unmounted.


        EXAMPLES

        mount /dev/dsk/usr /usr                mount a local disk
        mount -at dg/ux                        mount all dg/ux file systems
        mount -t nfs serv:/usr/src /usr/src    mount remote file system
        mount serv:/usr/src /usr/src           same as above
        mount -o soft serv:/usr/src /usr/src   same as above but soft mount
        mount -p > /etc/fstab                  save current mount state


        FILES

        /etc/mnttab    mount table
        /etc/fstab     file system table


        SEE ALSO

        mount(2), nfsmount(2), umount(2), fstab(4), mountd(1m),
        mnttab(4), nfsd(1m), fsck(1m), devnm(1m)

























        DG/UX 4.00                                                 Page 3
               Licensed material--property of copyright holder(s)



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