Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mount(NADM) — OpenDesktop 1.0.0y

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

setmnt(ADM)

mountd(NADM)

nfsd(NADM)

showmount(NADM)

mount(NS)

fstab(F)

mnttab(NF)


     MOUNT(NADM)                        UNIX System V



     Name
          mount, umount - Mount and unmount file system


     Syntax
          /etc/mount [[-r] [-f fstyp] special directory]
          /etc/mount [[-r] -f NFS[,options] resource directory]
          /etc/mount [[-r] [-d] resource directory]
          /etc/umount directory
          /etc/umount [-d] resource


     Description
          File systems other than root ( / ) are considered  removable
          in  the  sense that they can be either available to users or
          unavailable.  mount announces to the system that special,  a
          block  special  device  or  resource,  a remote resource, is
          available  to  users  from  the   mount   point   directory.
          directory  must  exist  already;  it becomes the name of the
          root of the newly mounted special.

          mount, when entered with arguments, adds  an  entry  to  the
          table  of  mounted  devices, /etc/mnttab. umount removes the
          entry.  If invoked  with  no  arguments,  mount  prints  the
          entire  mount table.  If invoked with an incomplete argument
          list, mount searches /etc/fstab for the missing arguments.

     Options
          -r        A special or resource is to be mounted  read-only.
                    If  special  or  resource is write-protected, this
                    flag must be used.


          -d        A resource is a remote  resource  that  is  to  be
                    mounted on directory or unmounted.


          -ffstyp   An fstype is the file system type to  be  mounted.
                    If  this  argument  is omitted, it defaults to the
                    root fstyp. If fstyp is NFS, then NFS options  may
                    be added after the fstyp separated by commas.  The
                    available NFS options are:

                    soft return error if the server does not respond.

                    rsize=n
                         set the read buffer size to n bytes.

                    wsize=n
                         set the write buffer size to n bytes.

                    timeo=n
                         set the initial NFS timeout to n tenths of  a
                         second.

                    retrans=n
                         set the number of NFS retransmissions to n.

                    port=n
                         set the server IP port number to n.


          special
          The block special device that is to be mounted on directory.
          If  fstyp  is  NFS,  then  special  should  be  of  the form
          hostname:/pathname.


          resource
          The remote  resource  name  that  is  to  be  mounted  on  a
          directory.


          directory
          The directory mount point  for  special  or  resource.  (The
          directory must already exist.)

          umount  announces  to  the  system  that  the  file   system
          previously  mounted  special  or  resource  is  to  be  made
          unavailable.  If invoked with an incomplete  argument  list,
          umount searches /etc/fstab for the missing arguments.

          mount can be used by any user to list mounted  file  systems
          and  resources.  Only a super-user can mount and umount file
          systems.


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


     Example
          The following command mounts the root  file  system  of  the
          remote  machine  test onto the mount point mnt and specifies
          the file system type.

          mount -f nfs,soft,rsize=1024, wsize=1024  test:/  /mnt


     See Also
          setmnt(ADM), mountd(NADM), nfsd(NADM), showmount(NADM),
          mount(NS), fstab(F), mnttab(NF)


     Diagnostics
          If  the  mount(NS)  system  call  fails,  mount  prints   an
          appropriate  diagnostic.  mount issues a warning if the file
          system to be mounted  is  currently  mounted  under  another
          name.   A remote resource mount will fail if the resource is
          not available.

          umount fails if special or resource is not mounted or if  it
          is busy.  special or resource is busy if it contains an open
          file or some user's working directory.


     Warnings
          Physically removing a mounted file system diskette from  the
          diskette drive before issuing the umount command damages the
          file system.


(printed 8/17/89)                                       MOUNT(NADM)

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