2 .\" Copyright 1989 AT&T Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH MOUNTALL 8 "Dec 17, 2008"
8 mountall, umountall \- mount, unmount multiple file systems
12 \fBmountall\fR [\fB-F\fR \fIFSType\fR] [\fB-l\fR | \fB-r\fR] [\fIfile_system_table\fR]
17 \fBumountall\fR [\fB-k\fR] [\fB-s\fR] [\fB-F\fR \fIFSType\fR] [\fB-l\fR | \fB-r\fR] [\fB-n\fR] [\fB-Z\fR]
22 \fBumountall\fR [\fB-k\fR] [\fB-s\fR] [\fB-h\fR \fIhost\fR] [\fB-n\fR] [\fB-Z\fR]
28 \fBmountall\fR is used to mount file systems specified in a file system table.
29 The file system table must be in \fBvfstab\fR(4) format. If no
30 \fIfile_system_table\fR is specified, \fB/etc/vfstab\fR is used. If \(mi is
31 specified as \fIfile_system_table\fR, \fBmountall\fR reads the file system
32 table from the standard input. \fBmountall\fR mounts only those file systems
33 with the \fBmount at boot\fR field set to \fByes\fR in the
34 \fIfile_system_table\fR.
37 For each file system in the file system table, the following logic is executed:
38 if there exists a file \fB/usr/lib/fs/\fR\fIFSType\fR\fB/fsckall\fR, where
39 \fIFSType\fR is the type of the file system, save that file system in a list to
40 be passed later, and all at once, as arguments to the
41 \fB/usr/lib/fs/\fR\fIFSType\fR\fB/fsckall\fR script. The
42 \fB/usr/lib/fs/\fR\fIFSType\fR\fB/fsckall\fR script checks all of the file
43 systems in its argument list to determine whether they can be safely mounted.
44 If no \fB/usr/lib/fs/\fR\fIFSType\fR\fB/fsckall\fR script exists for the
45 \fIFSType\fR of the file system, the file system is individually checked using
46 \fBfsck\fR(1M). If the file system does not appear mountable, it is fixed using
47 \fBfsck\fR before the mount is attempted. File systems with a \(mi entry in the
48 \fBfsckdev\fR field are mounted without first being checked.
51 \fBumountall\fR causes all mounted file systems in the current zone except
52 \fBroot\fR, \fB/usr\fR, \fB/var\fR, \fB/var/log\fR, \fB/var/run\fR,
53 \fB/proc\fR, and \fB/dev/fd\fR to be unmounted. If the \fIFSType\fR is
54 specified, \fBmountall\fR and \fBumountall\fR limit their actions to the
55 \fIFSType\fR specified. There is no guarantee that \fBumountall\fR unmounts
56 \fIbusy\fR file systems, even if the \fB-k\fR option is specified.
60 The following options are supported:
67 Specify the \fIFSType\fR of the file system to be mounted or unmounted.
73 \fB\fB-h\fR \fIhost\fR\fR
76 Unmount all file systems listed in \fB/etc/mnttab\fR that are remote-mounted
86 Use the \fBfuser\fR \fB-k\fR \fImount-point\fR command. See the \fBfuser\fR(8)
87 for details. The \fB-k\fR option sends the \fBSIGKILL\fR signal to each process
88 using the file. As this option spawns kills for each process, the kill messages
89 might not show up immediately. There is no guarantee that \fBumountall\fR
90 unmounts \fIbusy\fR file systems, even if the \fB-k\fR option is specified.
99 Limit the action to local file systems.
108 List the actions that would be performed for the specified options, but do not
109 actually execute these actions. Repeating the command without the \fB-n\fR
110 option executes the listed actions, assuming that the \fB/etc/mnttab\fR file
111 has not changed in the interval prior to repeating the command.
120 Limit the action to remote file system types.
129 Do not perform the \fBumount\fR operation in parallel.
138 Apply the action(s) only to the file systems mounted in non-global zones. By
139 default, \fBumountall\fR unmounts only file systems mounted in the current
140 zone. Option \fB-Z\fR is ignored if used in a non-global zone.
147 \fB\fB/etc/mnttab\fR\fR
151 Mounted file system table
157 \fB\fB/etc/vfstab\fR\fR
161 Table of file system defaults
167 \fB\fB/usr/lib/fs/\fIFSType\fR/fsckall\fR\fR
171 Script called by \fBmountall\fR to perform the file system check of all file
172 systems of type \fIFSType\fR
178 See \fBattributes\fR(5) for descriptions of the following attributes:
186 ATTRIBUTE TYPE ATTRIBUTE VALUE
188 Interface Stability Committed
190 Output Stability Uncommitted
196 \fBfsck\fR(8), \fBfuser\fR(8), \fBmount\fR(8), \fBmnttab\fR(4),
197 \fBvfstab\fR(4), \fBattributes\fR(5)
201 No messages are printed if the file systems are mountable and clean.
204 Error and warning messages come from \fBfsck\fR(8) and \fBmount\fR(8).
208 At this time, NFS is the only remote file system supported by the \fB-l\fR,
209 \fB-r\fR, and \fB-h\fR options.