[0m


MOUNT(8)	    UNIX Programmer's Manual		 MOUNT(8)



[1mNAME
     [0mmount, umount - mount and dismount filesystems

[1mSYNOPSIS
     /usr/sbin/mount [0m[ [1m-p [0m]
     [1m/usr/sbin/mount -a[0m[[1mnv[0m] [ [1m-t [0m_t_y_p_e ]
     [1m/usr/sbin/mount [0m[ [1m-nrv [0m] [ [1m-t [0m_t_y_p_e ] [ [1m-o [0m_o_p_t_i_o_n_s ] _f_i_l_e_s_y_s_-
     _t_e_m _d_i_r_e_c_t_o_r_y
     [1m/usr/sbin/mount [0m[ [1m-vn [0m] [ [1m-o [0m_o_p_t_i_o_n_s ] _f_i_l_e_s_y_s_t_e_m | _d_i_r_e_c_-
     _t_o_r_y

     [1m/usr/sbin/umount [0m[ [1m-t [0m_t_y_p_e ] [ [1m-h [0m_h_o_s_t ]
     [1m/usr/sbin/umount -a[0m[[1mv[0m]
     [1m/usr/sbin/umount [0m[ [1m-v [0m] _f_i_l_e_s_y_s_t_e_m | _d_i_r_e_c_t_o_r_y  ...

[1mDESCRIPTION
     mount [0mattaches a named _f_i_l_e_s_y_s_t_e_m to the filesystem hierar-
     chy at the pathname location _d_i_r_e_c_t_o_r_y, which must already
     exist.  If _d_i_r_e_c_t_o_r_y has any contents prior to the [1mmount
     [0moperation, these remain hidden until the _f_i_l_e_s_y_s_t_e_m is once
     again unmounted.  If _f_i_l_e_s_y_s_t_e_m is of the form
     _h_o_s_t[1m:[0m_p_a_t_h_n_a_m_e, it is assumed to be an NFS filesystem (type
     _n_f_s).

     [1mumount [0munmounts a currently mounted filesystem, which can be
     specified either as a _d_i_r_e_c_t_o_r_y or a _f_i_l_e_s_y_s_t_e_m.

     [1mmount [0mand [1mumount [0mmaintain a table of mounted filesystems in
     /_e_t_c/_m_t_a_b, described in _m_t_a_b(5).  If invoked without an
     argument, [1mmount [0mdisplays the contents of this table.  If
     invoked with either a _f_i_l_e_s_y_s_t_e_m or _d_i_r_e_c_t_o_r_y only, mount
     searches the file /_e_t_c/_f_s_t_a_b for a matching entry, and
     mounts the filesystem indicated in that entry on the indi-
     cated directory.

[1mMOUNT OPTIONS
     -p   [0mPrint the list of mounted filesystems in a format suit-
	  able for use in /_e_t_c/_f_s_t_a_b.

     [1m-a   [0mAll.	Attempt to mount all the filesystems described in
	  /_e_t_c/_f_s_t_a_b, except those marked there as _n_o_a_u_t_o.  If a
	  _t_y_p_e argument is specified with [1m-t[0m, mount all filesys-
	  tems of that type.  Filesystems are not necessarily
	  mounted in the order shown in /_e_t_c/_f_s_t_a_b.

     [1m-n   [0mMount the filesystem without making an entry in
	  /_e_t_c/_m_t_a_b.

     [1m-v   [0mVerbose.  Display a message indicating each filesystem
	  being mounted.

     [1m-t [0m_t_y_p_e



Printed 18/6/99     Revision 1.10 of 10/10/90			1






MOUNT(8)	    UNIX Programmer's Manual		 MOUNT(8)



	  Specify a filesystem type.  The accepted types are [1m4.3[0m,
	  and [1mnfs[0m; see _f_s_t_a_b(5) for a description of these types.

     [1m-r   [0mMount the specified filesystem read-only, even if the
	  entry in /_e_t_c/_f_s_t_a_b specifies that it is to be mounted
	  read-write.

	  Physically write-protected and magnetic-tape filesys-
	  tems must be mounted read-only. Otherwise errors occur
	  when the system attempts to update access times, even
	  if no write operation is attempted.

     [1m-o [0m_o_p_t_i_o_n_s
	  Specify filesystem _o_p_t_i_o_n_s -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.

	  _o_p_t_i_o_n_s valid on _a_l_l filesystems:

	       [1mrw[0m|[1mro	     [0mRead/write or read-only.
	       [1msuid[0m|[1mnosuid   [0mSetuid execution allowed or disal-
			     lowed.
	       [1mgrpid	     [0mCreate files with BSD semantics for
			     the propagation of the  group ID.
			     Under this option, files inherit the
			     GID of the directory in which they
			     are created, regardless of the
			     directory's set-GID bit.
	       [1mnoauto	     [0mThis option is ignored in the con-
			     text of a mount command; it is used
			     in /_e_t_c/_f_s_t_a_b to indicate that a
			     filesystem should not be mounted by
			     a [1mmount -a [0mcommand, as described
			     above.
	       [1mremount	     [0mRemount this file system, which is
			     currently mounted read-only.  If the
			     file system is currently mounted,
			     and if the entry in /_e_t_c/_f_s_t_a_b
			     specifies that it is to be mounted
			     read-write or [1mrw [0mwas specified along
			     with [1mremount[0m, remount the file sys-
			     tem making it read-write.	If the
			     entry in /_e_t_c/_f_s_t_a_b specifies that
			     it is to be mounted read-only and [1mrw
			     [0mwas not specified, the file system
			     is not remounted.	If the file sys-
			     tem is not currently mounted, an
			     error results.

	       The default is `[1mrw,suid[0m'.




Printed 18/6/99     Revision 1.10 of 10/10/90			2






MOUNT(8)	    UNIX Programmer's Manual		 MOUNT(8)



	  _o_p_t_i_o_n_s specific to _4._3 filesystems:

	       [1mquota[0m|[1mnoquota  [0mUsage limits are enforced, or are
			      not enforced.  The default is
			      [1mnoquota[0m.

	  _o_p_t_i_o_n_s specific to _n_f_s [1m(NFS)[0mfilesystems:

	       [1mbg[0m|[1mfg	     [0mIf the first attempt fails, retry in
			     the background, or, in the fore-
			     ground.
	       [1mretry=[0m_n	     The number of times to retry the
			     mount operation.
	       [1mrsize=[0m_n	     Set the read buffer size to _n bytes.
	       [1mwsize=[0m_n	     Set the write buffer size to _n
			     bytes.
	       [1mtimeo=[0m_n	     Set the NFS timeout to _n tenths of a
			     second.
	       [1mretrans=[0m_n     The number of NFS retransmissions.
	       [1mport=[0m_n	     The server IP port number.
	       [1msoft[0m|[1mhard     [0mReturn an error if the server does
			     not respond, or continue the retry
			     request until the server responds.
	       [1mintr	     [0mAllow keyboard interrupts on hard
			     mounts.
	       [1msecure	     [0mUse a more secure protocol for NFS
			     transactions.
	       [1macregmin=[0m_n    Hold cached attributes for at least
			     _n seconds after file modification.
	       [1macregmax=[0m_n    Hold cached attributes for no more
			     than _n seconds after file modifica-
			     tion.
	       [1macdirmin=[0m_n    Hold cached attributes for at least
			     _n seconds after directory update.
	       [1macdirmax=[0m_n    Hold cached attributes for no more
			     than _n seconds after directory
			     update.
	       [1mactimeo=[0m_n     Set _m_i_n and _m_a_x times for regular
			     files and directories to _n seconds.

	       Regular defaults are:
		    [1mfg,retry=10000,timeo=7,retrans=3,port=NFS_PORT,hard,\
		    acregmin=3,acregmax=60,acdirmin=30,acdirmax=60

	       [0mDefaults for [1mrsize [0mand [1mwsize [0mare set internally by
	       the system kernel.

[1mUMOUNT OPTIONS
     -h [0m_h_o_s_t
	  Unmount all filesystems listed in /_e_t_c/_m_t_a_b that are
	  remote-mounted from _h_o_s_t.




Printed 18/6/99     Revision 1.10 of 10/10/90			3






MOUNT(8)	    UNIX Programmer's Manual		 MOUNT(8)



     [1m-t [0m_t_y_p_e
	  Unmount all filesystems listed in /_e_t_c/_m_t_a_b that are of
	  a given _t_y_p_e.

     [1m-a   [0mUnmount all filesystems currently mounted (as listed in
	  /_e_t_c/_m_t_a_b).

     [1m-v   [0mVerbose.  Display a message indicating each filesystem
	  being unmounted.

[1mNFS FILESYSTEMS
     Background vs. Foreground
     [0mFilesystems mounted with the [1mbg [0moption indicate that [1mmount
     [0mis to retry in the background if the server's mount daemon
     ([1mmountd[0m(8c)) does not respond.  [1mmount [0mretries the request up
     to the count specified in the [1mretry=[0m_n option.  Once the
     filesystem is mounted, each NFS request made in the kernel
     waits [1mtimeo=[0m_n tenths of a second for a response.  If no
     response arrives, the time-out is multiplied by [1m2 [0mand the
     request is retransmitted.	When the number of retransmis-
     sions has reached the number specified in the [1mretrans=[0m_n
     option, a filesystem mounted with the [1msoft [0moption returns an
     error on the request; one mounted with the [1mhard [0moption
     prints a warning message and continues to retry the request.

     [1mRead-Write vs. Read-Only

     [0mFilesystems that are mounted [1mrw [0m(read-write) should use the
     [1mhard [0moption.

     [1mInterrupting Processes With Pending NFS Requests
     [0mThe [1mintr [0moption allows keyboard interrupts to kill a process
     that is hung while waiting for a response on a hard-mounted
     filesystem.

     [1mSecure Filesystems
     [0mThe [1msecure [0moption must be given if the server requires
     secure mounting for the filesystem.

     [1mFile Attributes

     [0mThe attribute cache retains file attributes on the client.
     Attributes for a file are assigned a time to be flushed.  If
     the file is modified before the flush time, then the flush
     time is extended by the time since the last modification
     (under the assumption that files that changed recently are
     likely to change soon).  There is a minimum and maximum
     flush time extension for regular files and for directories.
     Setting [1mactimeo=[0m_n extends flush time by _n seconds for both
     regular files and directories.





Printed 18/6/99     Revision 1.10 of 10/10/90			4






MOUNT(8)	    UNIX Programmer's Manual		 MOUNT(8)



[1mEXAMPLES
	  [0mTo mount a local disk:	[1mmount /dev/hp0g /usr
	  [0mTo mount all 4.3 filesystems: [1mmount -at 4.3
	  [0mTo mount a remote filesystem: [1mmount -t nfs
					serv:/usr/src /usr/src
	  [0mTo mount a remote filesystem: [1mmount serv:/usr/src
					/usr/src
	  [0mTo hard mount a remote filesystem:
					[1mmount -o hard
					serv:/usr/src /usr/src
	  [0mTo save current mount state:	[1mmount -p > /etc/fstab

FILES
     [0m/_e_t_c/_m_t_a_b		 table of mounted filesystems
     /_e_t_c/_f_s_t_a_b          table of filesystems mounted at boot

[1mSEE ALSO
     [0m_m_k_d_i_r(2), _m_o_u_n_t(2), _u_n_m_o_u_n_t(2), _o_p_e_n(2), _f_s_t_a_b(5), _m_t_a_b(5),
     _m_o_u_n_t_d(8C), _n_f_s_d(8)

[1mBUGS
     [0mMounting 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 _t_h_e _d_i_r_e_c_t_o_r_y _t_o
     _w_h_i_c_h _t_h_e _s_y_m_b_o_l_i_c _l_i_n_k _r_e_f_e_r_s, rather than being mounted on
     top of the symbolic link itself.




























Printed 18/6/99     Revision 1.10 of 10/10/90			5



[0m