mnt man page on Xenix

Man page or keyword search:  
man Server   1130 pages
apropos Keyword Search (all sections)
Output format
Xenix logo
[printable version]



     MNT(C)		      XENIX System V			MNT(C)

     Name
	  mnt - mount a filesystem

     Syntax
	  /etc/mnt [ -urat ] [ directory ]

	  /etc/umnt directory

     Description
	  mnt allows users other than the super-user to access the
	  functionality of the mount(ADM) command to mount selected
	  filesystems.	The super-user can define how and when a
	  filesystem mount is permitted via special entries in the
	  /etc/default/filesys file.

	  The filesystem requirements are the same as defined for
	  mount(ADM).

	  umnt removes the removable filesystem previously mounted at
	  the mount point directory .

	  mnt is invoked from /etc/rc with the -r and possibly the -a
	  flag to mount filesystems when the system comes up multi-
	  user.	 The -a flag is used when the system has autobooted.
	  Neither of these flags should be specified during normal
	  use.

	  The -t flag displays the contents of /etc/default/filesys.

	  The -u flag forces mnt to behave like umnt.

     Options
	  The following options can be defined in the
	  /etc/default/filesys entry for a filesystem:

	  bdev=/dev/device    Name of block device associated with the
			      filesystem.

	  cdev=/dev/device    Name of character (raw) device
			      associated with the filesystem.

	  mountdir=/directory The directory the filesystem is to be
			      mounted on.

	  desc=name	      A string describing the filesystem.

	  passwd=string	      An optional password prompted for at
			      mount request time.  Cannot be a simple
			      string; must be in the format of
			      /etc/passwd. (See Notes.)

	  fsck=yes, no, dirty, prompt

     Page 1					      (printed 2/7/91)

     MNT(C)		      XENIX System V			MNT(C)

			      If ``yes'' or ``no,'' tells explicitly
			      whether or not to run fsck.  If
			      ``dirty,'' fsck is run only if the
			      filesystem requires cleaning.  If
			      ``prompt,'' the user is prompted for a
			      choice.  If no entry is given, the
			      default value is ``dirty.''

	  fsckflags=flags     Any flags to be passed to fsck.

	  rcfsck=yes, no, dirty, prompt
			      Similar to fsck entry, but only applies
			      when the -r flag is passed.

	  maxcleans=n	      The number of times to repeat cleaning
			      of a dirty filesystem before giving up.
			      If undefined, default is 4.

	  mount=yes, no, prompt
			      If ``yes'' or ``no,'' users are allowed
			      or disallowed to mount the filesystem,
			      respectively.  If ``prompt,'' the user
			      is queried to mount the filesystem.

	  rcmount=yes, no, prompt
			      If ``yes,'' the filesystem is mounted by
			      /etc/rc when the system comes up
			      multiuser.  If ``no,'' the filesystem is
			      never mounted by /etc/rc.	 With
			      ``prompt,'' a query is displayed at boot
			      time to mount the filesystem.

	  mountflags=flags    Any flags to be passed to mount.

	  prep=yes, no, prompt
			      Indicates whether any prepcmd entry
			      should always be executed, never
			      executed, or executed as specified by
			      the user.

	  prepcmd=command     An arbitrary shell command to be invoked
			      immediately following password check and
			      prior to running fsck.

	  init=yes, no, prompt
			      Indicates whether an initcmd entry
			      should always be executed, never be
			      executed, or executed as specified by
			      user.

	  initcmd=command     An optional, arbitrary shell command to
			      be invoked immediately following a

     Page 2					      (printed 2/7/91)

     MNT(C)		      XENIX System V			MNT(C)

			      successful mount.

	  Any entries containing spaces, tabs, or newlines must be
	  contained in double quotes (").

	  The only mandatory entries in /etc/default/filesys are bdev
	  and mountdir.	 The prepcmd and initcmd options can be used
	  to execute another command before or after mounting the
	  filesystem.  For example, initcmd could be defined to send
	  mail to root whenever a given filesystem is mounted.

	  When invoked without arguments, mnt attempts to mount all
	  filesystems that have the entries mount=yes or mount=prompt.

     Examples
	  The following is a sample /etc/default/filesys file:

	       bdev=/dev/root  cdev=/dev/rroot	mountdir=/  \
	       desc="The Root Filesystem"  rcmount=no  mount=no

	       bdev=/dev/u  cdev=/dev/ru  mountdir=/u  rcmount=yes  \
	       fsckflags=-y  desc="The User Filesystem"

	       bdev=/dev/x  cdev=/dev/rx  mountdir=/u  rcmount=no  \
	       mount=yes  fsckflags=-y	desc="The Extra Filesystem"

	  Of the examples above, only /x is mountable by the user.

     Files
	  /etc/default/filesys
			      Filesystem data

     See Also
	  mount(ADM), default(M)

     Diagnostics
	  mnt will fail if the filesystem to be mounted is currently
	  mounted under another name.

	  Busy filesystems cannot be dismounted with umnt. A
	  filesystem is busy if it contains an open file or if a
	  user's present working directory resides within the
	  filesystem.

     Notes
	  Some degree of validation is done on the filesystem, however
	  it is generally unwise to mount corrupt filesystems.

	  In order to create a password for a filesystem, you must
	  create a dummy account in /etc/passwd and define a password
	  for it.  You can then edit the /etc/passwd file and transfer
	  the encrypted password into the password entry for the

     Page 3					      (printed 2/7/91)

     MNT(C)		      XENIX System V			MNT(C)

	  filesystem in /etc/default/filesys.

     Page 4					      (printed 2/7/91)

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net