Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ umount(1M) — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fuser(1M)

mountd(1M)

nfsd(1M)

nfsmount(2)

fstab(4)

proc(4)



MOUNT(1M)           RISC/os Reference Manual            MOUNT(1M)



NAME
     mount, umount - mount and dismount filesystems

SYNOPSIS
     /etc/mount [-racvpfto [type|option]] ...  [fsname] [dir]
     /etc/umount -a[v] [-t type] [ -h host]
     /etc/umount [-kv] path | dev

DESCRIPTION
     mount announces to the system that a filesystem 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 newly mounted root.  The contents of dir are hidden
     until the filesystem is unmounted.  If fsname is of the form
     host:path the filesystem type is assumed to be nfs(7P).

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

     mount and umount maintain a table of mounted filesystems in
     /etc/mtab, described in mtab(4).  If invoked without an
     argument, mount displays the table.  If invoked with only
     one of fsname or dir mount searches the file /etc/fstab (see
     fstab(4)) for an entry whose dir or fsname field matches the
     given argument.  For example, if this line is in /etc/fstab:

          "/dev/xy0g /usr ffs rw 1 1"

     then the commands mount /usr and mount /dev/xy0g are short-
     hand for mount /dev/xy0g /usr.

MOUNT OPTIONS
     -r   Mount the specified filesystem read-only.  This is a
          shorthand for:

               mount -o ro fsname dir

          Physically write-protected and magnetic tape filesys-
          tems must be mounted read-only, or errors occur when
          access times are updated, whether or not any explicit
          write is attempted.

     -a   Attempt to mount all the filesystems described in
          /etc/fstab. (In this case, fsname and dir are taken
          from /etc/fstab.)  If a type is specified all of the
          filesystems in /etc/fstab with that type are mounted.
          filesystems are not necessarily mounted in the order
          listed in /etc/fstab.

     -c   Invoke fsstat(1M) on each filesystem being mounted; and



                        Printed 11/19/92                   Page 1





MOUNT(1M)           RISC/os Reference Manual            MOUNT(1M)



          if it indicates that the filesystem is dirty, call
          fsck(1M) to clean the filesystem.  fsck is passed the
          -p option.

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

     -p   Print the list of mounted filesystems in a format suit-
          able for use in /etc/fstab.

     -f   Fake a new /etc/mtab entry, but do not actually mount
          any filesystems.

     -ttype
          The type is the filesystem type.  The accepted types
          are ffs, ufs, 4.3, local and nfs; see fstab(4) for a
          description of these filesystem types.  The local type
          is known only to mount and will cause all non-networked
          filesystems to be mounted.

     -o   Specify options, a list of comma-separated words from
          the list below.  Some options are valid for all
          filesystem types, while others apply to a specific type
          only.


     options valid on all filesystems.  See fstab (4) for the
     complete set of options (the defaults are rw, suid):

          rw     read/write.

          ro     read-only.

          nosuid set-uid execution not allowed.  The suid option
                 is not needed as suid is the default.

          raw=path
                 the filesystem's raw device interface pathname.

          hide | noauto
                 ignore this entry during a mount -a command to
                 allow you to define fstab entries for commonly
                 used filesystems you don't want to automatically
                 mount.

     options specific to nfs (NFS) filesystems.  See fstab (4)
     for the complete set of options (the defaults are:  fg,
     retry=0, timeo=7, retrans=4,port=NFSPORT, hard with
     defaults for rsize and wsize set by the kernel):

          bg     if the first mount attempt fails, retry in the
                 background.



 Page 2                 Printed 11/19/92





MOUNT(1M)           RISC/os Reference Manual            MOUNT(1M)



          fg     retry in foreground.

          retry=nset number of mount failure retries to n.

          rsize=nset read buffer size to n bytes.

          wsize=nset write buffer size to n bytes.

          timeo=nset NFS timeout to n tenths of a second.

          retrans=n
                 set number of NFS retransmissions to n.

          port=n set server IP port number to n.

          soft   return error if server doesn't respond.

          hard   retry request until server responds.

     The bg option causes mount to run in the background if the
     server's mountd(1M) does not respond. If bg is specified and
     retry is not specified, retry defaults to 10000.  mount
     attempts each request retry=n times before giving up. Once
     the filesystem is mounted, each NFS request made in the ker-
     nel waits timeo=n tenths of a second for a response.  If no
     response arrives, the time-out is multiplied by 2 and the
     request is retransmitted.  When retrans=n retransmissions
     have been sent with no reply a soft mounted filesystem
     returns an error on the request and a hard mounted filesys-
     tem retries the request.  Filesystems that are mounted rw
     (read-write) should use the hard option.  The number of
     bytes in a read or write request can be set with the rsize
     and wsize options.

UMOUNT OPTIONS
     -h host
          Unmount all filesystems listed in /etc/mtab that are
          remote-mounted from host.

     -a   Attempt to unmount all the filesystems currently
          mounted (listed in /etc/mtab).  In this case, fsname is
          taken from /etc/mtab.

     -k   Call fuser -k <directory> on all directories which are
          unmountable.

     -t   Unmounts all filesystems of a given filesystem type.
          The accepted types are ffs, ufs, 4.3, local and nfs.

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




                        Printed 11/19/92                   Page 3





MOUNT(1M)           RISC/os Reference Manual            MOUNT(1M)



EXAMPLES
     mount /dev/xy0g /usr               mount a local disk
     mount -at ffs                      mount all ffs filesystems
     mount -t nfs serv:/usr/src /usr/srcmount remote filesystem
     mount serv:/usr/src /usr/src       same as above
     mount -o hard serv:/usr/src /usr/srcsame as above but hard mount
     mount -p > /etc/fstab              save current mount state

FILES
     /etc/mtab mount table
     /etc/fstab     filesystem table

SEE ALSO
     fuser(1M), mountd(1M), nfsd(1M).
     nfsmount(2), fstab(4), proc(4) in the Programmer's Reference
     Manual.

ERRORS
     Mounting filesystems full of garbage crashes the system.

     If the directory on which a filesystem is to be mounted is a
     symbolic link, the filesystem is mounted on the directory to
     which the symbolic link refers, rather than being mounted on
     top of the symbolic link itself.

ORIGIN
     Sun Microsystems




























 Page 4                 Printed 11/19/92



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