Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fstab(4)

mount(2)

mnttab(4)

mkdisk(1m)

MOUNT(1M)                            SysV                            MOUNT(1M)



NAME
     mount, umount - mount and unmount file system

SYNOPSIS
Removable file systems only:

     /etc/mount [-r] [-f type] [dev dir]

     /etc/umount [dev]

Remote file systems only:

     /etc/mount [-r] [-f nfs] [,options] [fsys] [dir]

     /etc/umount [-root] [fsys | dir]

DESCRIPTION
     The mount command mounts removable and remote file systems.

     The umount command unmounts removable and remote file systems.

     When mounting a removable file system located on a diskette, cartridge
     tape, or magtape, specify the device name for dev and a pre-existing
     directory pathname for dir.

     When mounting a remote file system (that is, one located on another
     host), specify the -f option with the argument nfs, the remote host and
     file system in the form host:fsname for fsys, and a non-existent
     directory for dir if it is a single level mount.  (The mount command
     creates a gateway object named dir.)  Use an existing directory for dir
     if the file system is to be mounted hierarchically.

     Note:  You must have the nfs optional product installed to mount remote
     file systems.

     The mount and umount commands maintain a table of mounted file systems in
     /etc/mnttab. If you execute the mount command without arguments, it
     prints the table.  If you specify only one argument, the command searches
     /etc/fstab for an entry with the same argument; if the entry exists, the
     command then uses it to mount the file system.

     You must be running as root (the super-user) in order to use the
     mount/umount commands.

OPTIONS
     The command options can be one or more of the following items separated
     by a space.

     -f type   Accept the argument that follows as the file system type to be
               mounted.  If this argument is omitted, mount defaults to the
               root type.

               Type cdfs specifies a CDROM device.  To specify the CDROM
               volume descriptor, use cdfs,n, where n is the volume descriptor
               number.  The default for n is 0, which specifies the primary
               volume descriptor.

               If the type is nfs, then accept the following arguments,
               separated by commas, as options.  The defaults are fg, retry=1,
               timeo=3, and hard.

               bg          Retry in background if server host's mountd(1m)
                           doesn't respond.

               fg          Retry in foreground.

               hard        Retransmit until server responds.

               mtimeo=n    Set the mount timeout to n tenths of a second.

               port=n      Set NFS port number n.

               retrans=n   Set the number of NFS transmission retries (that
                           is, the number of attempts NFS will make to access
                           the mounted file system) to n. There is no ceiling
                           on the number.  When used with the soft option, the
                           default is 4.

               retry=n     Set the number of mount retries to n.

               ro          Allow read only.

               root        Mount in the global root directory.

               rsize=n     Set the read request buffer size to n bytes.

               rw          Allow read/write.

               soft        Report an error if server fails to respond.

               timeo=n     Set the NFS transmission timeout to n tenths of a
                           second.  When attempting to access the mounted file
                           system, NFS waits the specified amount of time for
                           response; if there is no response, NFS multiplies n
                           by 2 and retransmits the request.  There is a 60
                           second ceiling on the timeout.

               wsize=n     Set the write request buffer size to n bytes.

     -r        Mount the file system as read-only.

     -root     Unmount the file system in the global root directory.

FILES
     /etc/mnttab    mount table

     /etc/fstab     file system table

BUGS
     Note that physically write-protected file systems, as well as those on
     magnetic tape, must be mounted read-only.  If not, errors develop even if
     no explicit write is attempted.

     Mounting a removable file system containing unreadable or otherwise
     invalid data can have unpredictable consequences.

SEE ALSO
     fstab(4), mount(2), mnttab(4), mkdisk(1m)

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