Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

umount(8) [osf1 man page]

mount(8)						      System Manager's Manual							  mount(8)

NAME
mount, umount - Mounts and unmounts file systems SYNOPSIS
/usr/sbin/mount [-d] [-r | -u | -w] [-o argument,...] [-t [no]type] file-system directory /usr/sbin/mount [-el] [-t [no]type] /usr/sbin/mount -a [-fv] [-t [no]type] /usr/sbin/mount [-d] [-r | -u | -w] [-o argument,...] [-t [no]type] file-system | directory /usr/sbin/umount -a | -A -b [-fv] [-t type] [-h host] /usr/sbin/umount [-fv] file-system... | directory... OPTIONS
There are options for the mount command and for the umount commands. Options for mount: Attempts to mount all the file systems described in the /etc/fstab file. In this case, file-system and directory are taken from the /etc/fstab file. If -t type is specified, all of the file systems in the /etc/fstab file with that type will be mounted. Alternatively, if type is prefixed with no, all the file systems in the /etc/fstab file that do not have that type will be mounted. File systems are not necessarily mounted in the order listed in the /etc/fstab file. Mounts a UNIX File System (UFS) even if it has not been unmounted cleanly or checked by fsck for consistency. Also used to mount a CD-ROM UFS file system. Caution Compaq recommends that you do not employ the -d option to mount an AdvFS fileset. When an AdvFS fileset is mounted with the -d option, AdvFS initializes the domain transaction log. As a result, no domain recovery will occur for previously incomplete opera- tions (which could cause data corruption). If you cannot mount a fileset, use the verify command instead. Lists all mount points. Without this option, mount does not list mount points served by either Automount or AutoFS. Performs a fake mount and actually does not mount the file system. This option is used to verify the arguments you plan to use with the mount command. Displays the value of all the file system options. Specifies a list of comma-separated arguments. Every argument specified is used. Some arguments are valid for all file system types, while others apply only to a specific type. See the mount -o Option Arguments section that is spe- cific to your file system type for a description of the arguments supported by that file system. Mounts the specified file system with read-only access. This option is the equivalent of the following command: mount -o ro file-system directory Physically write-protected and magnetic tape file systems must be mounted with read-only access or errors will occur when access times are updated, whether or not any explicit write is attempted. Note that -r and -w are paired; the default is -w. Specifies the file system type. The supported file systems are as follows: advfs -- Advanced File System (AdvFS) ufs -- UNIX File System (UFS) nfs -- Network File System (NFS) Version 2 protocol nfsv3 -- Network File System (NFS) Version 3 protocol mfs -- Memory file system (RAM Disk) (see mfs(8)) cdfs -- ISO 9660 CD-ROM (Compact Disc Read Only Memory) File System. See cdfs(4). dfs -- DCE Distributed File System efs -- DCE Episode File System fdfs -- File Descriptor File System (used by streams) ffm -- File on File Mounting File System (used by streams) procfs -- Process File System (used by debuggers) pcfs -- PC File System sysv -- System V File System See fstab(4) for a description of the legal file system types. If the no prefix is used, all file types except the one specified are mounted. Requests that the system remount a file system so that it can update any incore data blocks for ufs and advfs type file systems. This option applies only to UFS and AdvFS file systems that are currently mounted read-only and updates the file systems from read-only to read-write. For example, the mount -u / command updates the root file system from read-only to read-write. For CDFS, this option is used to change the attributes of a mount, such as the version attribute. For example, CDFS is mounted noversion by default. The following use of the -u option shows how you can change the default: # mount -u -o version /cdmntpnt Dis- plays a message indicating which file system is being mounted (verbose). Mounts the specified file system with read/write access. This option is equivalent to the -o rw option. Read/write is the default access. Options for umount: Attempts to unmount all the file systems currently mounted. Attempts to unmount all the file systems listed in the /etc/fstab file. Broadcasts a message to all server machines in the subnetwork to remove the client host's name from their NFS mountdtab files. Performs a fast unmount operation that causes remote file systems to be unmounted without notifying the server. Unmounts all file systems listed in the /etc/fstab file that are remotely mounted from host. Unmounts all file systems listed in the /etc/fstab file that are of the specified type. Note, the -a option must be used together with the -t option. Displays a message indicating the file system is being unmounted (verbose). mount -o Option Arguments There are many arguments for the -o option; they are discussed in the following paragraphs. AdvFS Arguments The following arguments are valid for the Advanced File System (AdvFS): Enables an AdvFS fileset to be mounted as a domain volume even though it has the same AdvFS domain ID as a fileset that is already mounted. Enables cluster file system partitioning. Use this option only in a cluster. For example: # mount -u -o server_only file_system If a file system is already mounted, you cannot use this option to update the mount status to server_only. For information on using this option, refer to the Partitioning File Systems section of the Cluster Administration guide. AdvFS and UFS Arguments The following arguments are valid for the Advanced File System (AdvFS) and UFS: Flushes to disk file access time changes for reads of regu- lar files. (Default behavior when neither atimes or noatimes is specified.) Marks file access time changes made for reads of regular files in memory, but does not flush them to disk until other file modifications occur. This behavior does not comply with industry standards and is used to reduce disk writes for applications with no dependencies on file access times. Allows read/write access. Allows read-only access. Allows read/write access. Allows file system to be used as swap space. Allows a file system to be mounted even if it was not cleanly unmounted. Allows access to block and character-special devices. Disallows access from the file system to either block or charac- ter-special devices. Allows set-user-ID execution. Prohibits set-user-ID execution. Causes all writes to be written immediately to disk as well as to the buffer cache. Specifies that writes may return before data is written to disk. Enables the alternate smooth sync pol- icy, in which modified pages are not written to disk until they have been dirty and idle for the smoothsync_age time period. By default modified pages are flushed after they have been dirty for the smoothsync_age time period, regardless of continued modifications to the page. Note that mmaped pages always use this default policy, regardless of the smsync2 setting. The default smoothsync_age period is 30 seconds, and can be modified by editing the inittab file. Allows binary execution. Prohibits binary execution. Enables new files to inherit the parent directory's group ID. This is the default and matches BSD semantics. Applies SVID 3 semantics. For example, if the parent directory's mode bits include IS_GID, then the new file will inherit the parent's group ID. If IS_GID is off, then it inherits the process group ID. UFS Arguments The following arguments are valid only for UFS. Extends a UFS file system to use all the available storage space in a revised partition. The file system must be mounted in order to use this option. If the file system is not mounted, or if you want to take only part of the available storage space, use the extendfs command. See the extendfs(8) reference page for more information. The procedure is as follows: Check the current disk partition allocation to verify that there is unused storage space in an adjacent partition. Write a copy of the current disklabel to a file using the disklabel command. Edit the copy of the disklabel to reduce the disk block size of the unused partition and increase the disk block size of the partition currently allocated to your UFS file system. Write the revised disk label back to the raw disk, using the disklabel command with the -R to force the change. For exam- ple: # /sbin/disklabel -R raw_dev label_file Use the mount command with the extend option to make the increased partition space available to the file system as follows: # mount -u -o extend mnt_point Refer to the System Administration guide for more information. Delays synchronously flushing metadata updates to disk. Instead, metadata (such as inode, directory, and indirect blocks) is flushed by the sync daemon. This mount option improves performance because: Multiple updates to a block are accomplished with a single write instead of with multiple writes of the same block, which can occur during synchronous metadata updates. System responsiveness improves when running metadata intensive applications. Meta- data writes to disk do not occur immediately. CAUTION Data might be lost if you use this option and your system crashes before the sync daemon flushes the metadata to disk. Do not use this option for the root (/) or /usr file systems. You can use this option for a temporary file system, such as /tmp, in which applications cache temporary data that is expendable. Refer to the nodelayed option for information on disabling delayed metadata updates. Synchronously flushes metadata updates to disk. This is the default behavior. By default, to maintain file system consistency, UFS metadata (such as inode, directory, and indirect blocks) is updated syn- chronously, which ensures that the UFS file system is consistent at all times and no data is lost if your system crashes. However, it can affect file system performance. Refer to the delayed option for information on disabling synchronous metadata updates to improve performance. Prevents excessive asynchronous I/O from overloading the device queue, which can affect response time for pro- cesses waiting for I/O operations to complete. To use this argument, you must enable smooth sync. See the EXAMPLES section for usage examples. NFS Arguments The following arguments are valid for the NFS: Allows access to block and character-special devices. Disallows access from the file system to either block or character-special devices. Allows read/write access. Allows read-only access. Allows set-user-ID execution. Pro- hibits set-user-ID execution. Causes all writes to be written immediately to disk as well as to the buffer cache. Specifies that writes may return before data is written to disk. Allows binary execution. Prohibits binary execution. New files inherit the parent directory's group ID. This is the default and matches BSD's semantics. SVID 3 semantics applied. For example, if the parent directory's mode bits include IS_GID, then the new file will inherit the parent's group ID. If IS_GID is off, then it inherits the process group ID. Retries in the background, if the first mount attempt fails. Retries in the foreground. Sets the number of mount failure retries to n. Sets the read buffer size to n bytes. Sets the write buffer size to n bytes. Sets the initial NFS timeout period for UDP mounts to n tenths of a second. NFS continually adjusts the timing as a function of network response time. Sets the maximum value, in seconds, that is allowed between request transmissions. [UDP mounts only] Sets the number of NFS retransmissions to n. Allows hard mounted file system operations to be interrupted. Prevents hard mounted file system operations from being interrupted, unless the thread is terminated (for example by a SIGKILL or an AST). Returns an error if the server does not respond. Retries the request until the server responds. Usually, the mount command tries to use Version 3 of the NFS protocol. If the server does not support Version 3, then the mount command retries the mount using Version 2. Specifying -o nfsv2 forces the mount command to use NFS Version 2. NFS Version 3 is an enhanced version of the NFS proto- col that provides 64 bit file access, as well as features designed to improve performance and correctness. Alternatively, you can use the vers=2 argument. Tries to use Version 3 of the NFS protocol. If the server does not support it, Version 2 is used. This is the default. Alternatively, you can use the vers=3 argument. Specifies the network transport: udp or tcp. Specify udp to use UDP as the network transport. This is supported by all known NFS servers. UDP works best in local, fast, and reliable environments. The mount will fail if the server does not support NFS over UDP. The proto=udp syntax is the default. Specify tcp to use TCP as the network transport. This is supported by some vendors, but not all. TCP works better than UDP in high-loss, congested networks, and is the only way to use NFS over the Internet. The mount will fail if the server does not support NFS over TCP. The -o tcp syntax is compatible with 4.4 BSD syntax, while the proto=tcp syntax is compatible with Solaris 2.4 syntax. Sets the server IP port number to the value of n. The default is to query the portmap daemon on the server for the port number (which is almost always 2049). This argument is useful only when the server is not running the portmap daemon or is running multiple NFS servers. Both of these situations are very rare. Allows the use of extended attributes (property list) including access control lists (ACLs) on this filesystem. The NFS server exporting this file system must be running the proplistd daemon. See the pro- plist(4), acl(4), and proplistd(8) reference pages. Specifies the version of the NFS protocol. You can specify either Version 3 or Version 2. Usually, the mount command tries to use Version 3 of the NFS protocol. If the server does not support Version 3, then the mount command retries the mount using Version 2. Specifying vers=2 forces the mount command to use NFS Version 2. NFS Version 3 is an enhanced version of the NFS protocol that provides 64 bit file access, as well as features designed to improve performance and cor- rectness. Alternatively, you can use the nfsv2 or nfsv3 argument. For NFS, the defaults are fg, retry=10000, timeo=11, maxtimo=20, retrans=4, hard, and intr. Defaults for rsize and wsize are set by the kernel. The bg argument causes mount to run in the background if the server's mountd does not respond. The mount command attempts each request retry times before giving up. Once the file system is mounted, each NFS request made in the kernel waits timeo tenths of a second for a response. If no response arrives, the timeout period is multiplied by 2 and the request is retransmitted. When retrans retransmissions have been sent with no reply, a soft mounted file system returns an error on the request and a hard mounted file system retries the request at maxtimo intervals. File systems that are mounted rw (read/write) should use the hard argument. The num- ber of bytes in a read or write request can be set with the rsize and wsize arguments. Note Using the mount command with the -t nfs option may cause it to touch the /etc/exports file. If the/etc/exports file has been manually cre- ated, you should ensure that it has bin:bin owner:group ownership. NFS Update Visibility Arguments These arguments control how quickly you see updates to a file or directory that has been modified by another host. Increasing these values gives you slightly better performance. Decreasing the values decreases the time it takes for you to see modifications made on the other host. If you are the only person modifying files under this mount point, you should increase these values. Holds cached directory attributes for at least n seconds. Holds cached directory attributes for no more than n seconds. The maximum value you can specify is 3600. Holds cached file attributes for at least n seconds. Holds cached file attributes for no more than n seconds. The maximum value you can specify is 3600. Sets all four attributes' cache timeout values to n. Does not set attribute caching. This argument is equivalent to actimeo=0. Does not get a fresh attribute when opening a file. The NFS Update Visibility Argument defaults are acdirmin=30, acdirmax=60, acregmin=3, and acregmax=60. CDFS Arguments The following arguments are valid for the CD-ROM File System (CDFS): Ignores the permission bits, if present, and defaults all file and directory permissions to the value 0555, with a zero User ID (UID) (owned by root). Files and directories recorded on an ISO 9660-formatted file system might or might not have permission bits. This setting is a default argument since the permissions on most existing ISO 9660-formatted CD-ROMs do not map to the UID scheme that is used. Uses the on-disk permission bits, if present. If a file or directory is not recorded with permission bits, the default 0555 is used. Strips off the extension (;#) from the version string if a file recorded on an ISO 9660-formatted file system or a file system formatted by the High Sierra Group contains a version string. File and directory names are displayed in lowercase letters and case-insensitive name matching is performed. Use this argument if you are mounting a CD-ROM contain- ing MS-DOS applications. Uses the Rock Ridge Interchange Protocol (RRIP) extensions to ISO 9660 (if present on the file system) to provide mixed-case file names, device special files, and other attributes for files on the file system. This setting is a default argument. If there are no RRIP extensions on the file system, the file system will be mounted and the argument will be ignored. Does not use the Rock Ridge Interchange Protocol (RRIP) extensions to ISO 9660 for files on the file system. If there are RRIP extensions on the file system, the file system will be mounted and the extensions will be ignored. Used the Microsoft Joliet formatted CD-ROM media, which provides long, mixed-case file names. Does not use the Microsoft Joliet formatted CD-ROM media. Uses the ISO 9660 uppercase 8.3 formatted file system. This is the default if no other file formats are found. Uses verbose messages in the output. The defaults for CDFS are ro, nodev, defperm, and rrip. CD-ROMs can contain several formats to support different platforms and operating systems. If you know which format you require (RRIP, Joliet, or ISO9660) specify the appropriate qualifier to the -o option. If you do not specify options for file name formats on the command line, the mount command automatically tests for the presence of formats and mounts it by default, according to the following rules of precedence: Check if Rock Ridge Interchange Protocol (RRIP) extensions are found on the CD-ROM, if yes, mount as -t cdfs -o rrip. If RRIP extensions are not found, check if the media has Microsoft JOLIET formatted file names. If yes, mount as -t cdfs -o joliet. If neither of the above were found, the mount command defaults to ISO 9660 format. If you specify one or more exclusive qualifiers, such as -o norrip, the mount command does not test for the presence of that format, and defaults to the next highest precedent. If a specifically-requested format is not found and other formats are not excluded, the mount command will attempt to mount the next high- est precedent. For example, you attempt to mount a CD-ROM specifying -o joliet format but the CD-ROM does not contain that format. Unless you specifically requested -o norrip, the mount command will attempt to mount RRIP. If RRIP is not found, the mount command defaults to ISO 9660 format. FFM Arguments The following arguments are valid for the File-on-File-Mounting (FFM) file system: Allows two separate files to have identical contents, separate names, and separate file descriptors. [Do not confuse this clone with an AdvFS clone fileset.] OPERANDS
Specifies one or more file systems. How you specify a file system depends on whether it is UFS or NFS or AdvFS. To specify a UFS, enter the name of its block device special file. For example: /dev/disk/dsk3c. The mount command returns an error if you try to mount file system on a partition that is already in use. To specify an NFS, file system specify the host and path name in either of these formats: host:path or path@host. To specify an AdvFS fileset, enter the name of the file domain, a pound-sign(#) character, and the name of the fileset. For exam- ple: root_domain#root. Specifies one or more directories. The directory must exist before you use the mount command. When the command is successful, the directory becomes the name of the newly mounted root directory, its mount point. When specified with the umount command, the directory must not be in use. Use the pwd command to check your present working direc- tory. If you or another user is in the mounted directory or in any directory in its hierarchy, you must switch to a different direc- tory. Likewise, if you are using files in the mounted directory, you must close the files to successfully unmount the directory. DESCRIPTION
Use the mount command to make a file system available for use, or mounted. Use the umount command to make a file system unavailable for use, or unmounted. The format used in the mount command determines the format returned by getfsstat and getmntinfo. If the mount command is invoked with only a file-system or directory specified, the command searches the /etc/fstab file for an entry whose file-system or directory field matches the argument specified with the command. For example, if the line /dev/disk/dsk0g /usr ufs rw 1 1 is specified in the /etc/fstab file, both of these two commands, mount /usr and mount /dev/disk/dsk0g are equivalent to the following command: # mount /dev/disk/dsk0g /usr The umount command announces to the system that the file system file-system previously mounted on directory should be removed. Either the file system name or the directory mount point can be specified in the command line. To use the mount and unmount commands, you must be the root user, with the following exceptions: When NFS file systems have been explicitly exported to allow nonroot users to mount the file system. Refer to the -n option of mountd(8) for more information. When a CD-ROM is mounted (by specifying the -t cdfs option) and the user owns the mount point. The mount command also lets you mount an ISO 9660- or HSG-formatted file system onto a directory. No more than one user should mount a disk partition with read/write access or the file system might become corrupted. If the directory on which a file system is to be mounted is a symbolic link, the file system is mounted on the directory to which the sym- bolic link refers, rather than being mounted on top of the symbolic link itself. When you boot to single-user mode, the root file system is mounted with read-only access. If you want to modify a file, you must change the options on the root file system to read/write. You can do this with the following command: # mount -u / If your /etc/fstab file is corrupted, you can mount the root file system with the following command: # mount -u /dev/disk/dsk??/ You must be the root user to mount a UFS file system. By default, the maximum number of UFS mounts is 1,000. However, you can modify this value by using the sysconfig command. For example: # sysconfig -r vfs max-ufs-mounts=1100 The default for CDFS is not to allow access to device special files (argument nodev) since the device numbers recorded on a disc using RRIP extensions might not match the device numbers used by the operating system. If you want to allow device access, mount the file system with the dev argument and use the cddevsuppl command to map the device numbers of the device special files on the disc to new device numbers used by the operating system. The mount command attempts to dynamically load the cdfs kernel modules if they are not statically built into the running kernel. However, you must be the root user to dynamically load the cdfs kernel modules. Other users receive the following error should they attempt the operation: mount: super user privileges required to load cdfs module All other errors that could occur as the cdfs kernel modules are being dynamically loaded produce the following error message: mount: Can't load cdfs module Refer to cdfs(4) for information on the correct system configuration options to set before using CDFS. NFS mounts can fail due to authentication requirements on the server. For example, a Client credential too weak message is returned if a user attempts to mount and the server only allows root user mounting. A Server rejected credential message is returned if the server is not able to resolve the client's IP address. If your workstation has multiple network interfaces, the server must be able to resolve all IP addresses from which it might receive mount requests. See the mountd(8) reference page or the Network Administration manual for more information. When you mount the first fileset in an AdvFS domain, AdvFS determines whether or not it can access all data in all volumes of that domain. If AdvFS determines that the size of any volume in the domain is actually smaller than the size recorded for that volume in the domain's metadata, there are two possible outcomes: The mount succeeds, but in read-only mode. In this case, AdvFS is able to read the last cur- rently in-use block on the volume. A message similar to the following is displayed: Actual size of virtual disk /dev/vol/vol01 is 100352 blocks but recorded size is 102400 blocks. Mounting fileset staff#grads in read-only mode. The mount fails. In this case, AdvFS cannot read the last currently in-use block on the volume. A message similar to the following is displayed: Actual size of virtual disk /dev/vol/vol01 is 100352 blocks but recorded size is 102400 blocks. Cannot read essential data on /dev/vol/vol01. Corrupted volume found; failing mount of staff#grads. staff#grads on /grads: I/O error When you attempt to mount an AdvFS fileset in an AdvFS domain, the number of volumes pointed to by the /etc/fdmns/dmn_name links must equal the number of volumes in the domain. If you attempt to mount an AdvFS file system with an incorrect number of volumes, the following mes- sage will appear on the console: # Volume count mismatch for domain dmn_name. dmn_name expects 2 volumes, /etc/fdmns/dmn_name has 1 links. To correct the problem , you must match the number of volumes and then mount them. See advscan(8) for more information. Smoothsync Smoothsync increases efficiency in that part of the file system, which utilizes the disks for writing dirty pages. Prior to smoothsync, dirty pages were scheduled for writing every 30 seconds by the update daemon. The smoothsync model schedules each page for writing after that page has been dirty for the smoothsync_age period (default 30 seconds). This allows all buffers to age the full smoothsync_age period, versus an average of 15 seconds with the update daemon model. This approach also distributes the requests made of the disk subsys- tem evenly across the smoothsync_age period. The approach with the update daemon submits all the I/O requests together. The smoothsync_age period can be set using sysconfig. A value of 0 disables smoothsync. An alternate smoothsync policy can be enabled on a filesystem basis by mounting with the smsync2 flag. With this policy, a page is not scheduled for writing until it is dirty and not mod- ified for the last smoothsync_age period. This policy may further decrease the I/O load. It is appropriate for filesystems/applications in which intermediate file states, should the system crash, not be useful. RESTRICTIONS
The mount and umount commands support mount point argument pathnames of up to MNAMELEN, which includes the null terminating character. MNAMELEN can be up to 90 characters long, including the null terminating character. Before you can use the ffm file system, you must configure the kernel option FFM_FS into the kernel. EXIT STATUS
Success. An error occurred. ERRORS
The following sections describe some warnings and errors produced by the command. Overlapping Partitions Warnings The following warning messages about overlapping partitions are displayed only if you use the -v option. Warning: partition special-device and overlapping partition(s) are marked in use in the disklabel. Explanation: The specified partition overlaps with another partition or partitions that have the fstype field set. Warning: partition(s) which overlap special-device are marked in use in the disklabel. Explanation: The partition overlaps another partition or partitions that have the fstype field set. Warning: the disklabel for special-device does not exist or is corrupted. Explanation: The device specified either does not have a disklabel or the disklabel has been corrupted. Warning: unable to check special-device against active AdvFS domains because the directory /etc/fdmns seems to be missing or wrong. Explanation: There was a failure when checking the overlap with AdvFS domains. The failure is with /etc/fdmns or /etc/fdmns/dom, or an active domain does not exist. Warning: unable to check special-device against active swap devices because special swap files are missing. Explanation: A failure occurred when checking the overlap with active swap devices. The special device files associated with active swap devices are invalid. Warning: unknown overlap condition errno encountered for partition special-device. Explanation: An unknown overlap condition was encountered for the specified device. Error: partition special-device is marked 'unused' Explanation: The fstype in the disklabel temporarily is set and will revert when you unmount the file using umount with the following messages: Warning: partition /dev/disk/dsk5c was detected as marked unused. Warning: partition /dev/disk/dsk5c temporarily set to / 'FS_BSDFFS' 4.2BSD Fast File System. Warning: Please use disklabel to correct this condition. Overlapping Partitions Errors The following are fatal error messages associated with overlapping partitions. Error: File system type fstype is invalid or not installed. Explanation: The file system type specified is not resident in the kernel or is otherwise inaccessible. Error: an overlapping partition is open. Explanation: A partition that overlaps the specified partition is open. Error: special-device is an invalid device or cannot be opened. Explanation: The specified device is invalid and an overlapping partition is open. Error: special-device contains a fstype file system. Explanation: The specified partition and overlapping partitions have the fstype field set. Error: Unknown severe error errno encountered for partition special-device. Explanation: An unknown overlap condition was encountered for the specified device. EXAMPLES
To mount a local disk, enter: % mount /dev/disk/dsk0g /usr To mount an AdvFS fileset, enter: % mount -t advfs usr_dmn#user1 /usr/user1 or % mount usr_dmn#user1 /usr/user1 To forcibly unmount all the filesets in the AdvFS file domain user_domain without requiring an interactive confirmation of the operation, but displaying all the filesets being unmounted, enter: % umount -Dyv user_domain To mount all ufs file systems, enter: % mount -at ufs To mount a remote file system, enter: % mount -t nfs serv:/usr/src /usr/src or % mount -t nfs /usr/src@serv /usr/src To mount a remote file system with a hard mount, enter: % mount -o hard serv:/usr/src /usr/src To mount an ISO 9660-formatted or HSG-formatted file system from block device /dev/disk/cdrom3c onto the local directory /cdfs with the file version strings stripped off, enter either of the following commands: % mount -t cdfs -o noversion /dev/disk/cdrom3c /cdfs % mount -o noversion /dev/disk/cdrom3c /cdfs To mount a UFS CD-ROM (for example, the installation CD-ROM) from block device /dev/disk/cdrom3c onto the local directory cdrom, enter either of the following commands: % mount -r /dev/disk/cdrom3c /cdrom % mount -o ro /dev/disk/cdrom3c /cdrom To mount the joliet-formatted file system on a multi-formatted file system from block device /dev/disk/cdrom3c onto the local directory /cdfs enter the following: % mount -t cdfs -o joliet /dev/disk/cdrom3c /cdfs To unmount the file system mounted on the /mnt local directory, enter the following command: % umount /mnt To unmount all NFS file systems, enter the following command: % umount -A -t nfs To unmount all file systems exported from host2, enter the following command: % umount -h host2 To use the delayed metadata option, use commands similar to the following examples: To enable delayed metadata updates and improve performance (at the risk of data loss), use a command similar to the following: # mount -o delayed /dev/disk/dsk3c /tmp_files To enable delayed metadata update on a file system that is already mounted, use a command similar to the following: # mount -u -o delayed /tmp_files Any options that were in force are turned off by this command. Therefore, you must also reenter all required mount options when you use the -o delayed option on a mounted file system To disable the delayed metadata update option, use a command similar to the fol- lowing: # mount -u -o nodelayed /tmp_files Any options that were in force are turned off by this command. Therefore, you must also reenter all required mount options when you use the -o nodelayed option on a mounted file system. To view which mount option is in operation for a given file system, use the mount command without arguments, as follows: # mount /dev/disk/dsk3c on /tmp_files type ufs (rw, delayed) Note that the word delayed appears in the mount options list at the end of the output from the mount ENVIRONMENT VARIABLES
FILES
Specifies the command path. Specifies the command path. Contains static information about file systems. SEE ALSO
Commands: cddevsuppl(8), extendfs(8) ,mfs(8), mountd(8), nfsd(8), proplistd(8) Functions: mount(2), mount(2sv), umount(2), umount(2sv), umount(3) Files: advfs(4), cdfs(4), fstab(4), mountdtab(4) mount(8)
Man Page