1mountall(1M)            System Administration Commands            mountall(1M)
2
3
4

NAME

6       mountall, umountall - mount, unmount multiple file systems
7

SYNOPSIS

9       mountall [-F FSType] [-l | -r] [file_system_table]
10
11
12       umountall [-k] [-s] [-F FSType] [-l | -r] [-n]  [-Z]
13
14
15       umountall [-k] [-s] [-h host] [-n] [-Z]
16
17

DESCRIPTION

19       mountall  is  used to mount file systems specified in a file system ta‐
20       ble. The file system table must be in vfstab(4) format. If no file_sys‐
21       tem_table  is  specified,  /etc/vfstab  is  used.  If − is specified as
22       file_system_table, mountall reads the file system table from the  stan‐
23       dard  input.  mountall mounts only those file systems with the mount at
24       boot field set to yes in the file_system_table.
25
26
27       For each file system in the file system table, the following  logic  is
28       executed:  if  there  exists  a  file/usr/lib/fs/FSType/fsckall,  where
29       FSType is the type of the file system, save that file system in a  list
30       to   be   passed   later,   and  all  at  once,  as  arguments  to  the
31       /usr/lib/fs/FSType/fsckall   script.   The   /usr/lib/fs/FSType/fsckall
32       script checks all of the file systems in its argument list to determine
33       whether they can be safely mounted.  If  no  /usr/lib/fs/FSType/fsckall
34       script  exists  for  the  FSType of the file system, the file system is
35       individually checked using fsck(1M). If the file system does not appear
36       mountable,  it  is fixed using fsck before the mount is attempted. File
37       systems with a − entry in the fsckdev field are mounted  without  first
38       being checked.
39
40
41       umountall  causes  all  mounted file systems in the current zone except
42       root,  /usr,  /var,  /var/adm,  /var/run,  /proc,  and  /dev/fd  to  be
43       unmounted.  If  the  FSType  is specified, mountall and umountall limit
44       their actions to the FSType  specified.  There  is  no  guarantee  that
45       umountall  unmounts  busy file systems, even if the -k option is speci‐
46       fied.
47

OPTIONS

49       The following options are supported:
50
51       -F         Specify the FSType of the  file  system  to  be  mounted  or
52                  unmounted.
53
54
55       -h host    Unmount  all  file  systems  listed  in /etc/mnttab that are
56                  remote-mounted from host.
57
58
59       -k         Use the fuser -k mount-point command. See the fuser(1M)  for
60                  details.  The  -k  option  sends  the SIGKILL signal to each
61                  process using the file. As this option spawns kills for each
62                  process,  the  kill  messages might not show up immediately.
63                  There is no guarantee that umountall unmounts busy file sys‐
64                  tems, even if the -k option is specified.
65
66
67       -l         Limit the action to local file systems.
68
69
70       -n         List  the  actions that would be performed for the specified
71                  options, but do not actually execute these actions.  Repeat‐
72                  ing  the  command  without the -n option executes the listed
73                  actions, assuming that the /etc/mnttab file has not  changed
74                  in the interval prior to repeating the command.
75
76
77       -r         Limit the action to remote file system types.
78
79
80       -s         Do not perform the umount operation in parallel.
81
82
83       -Z         Apply  the  action(s)  only  to the file systems  mounted in
84                  non-global zones. By default, umountall unmounts  only  file
85                  systems mounted in the current zone. Option -Z is ignored if
86                  used in a non-global zone.
87
88

FILES

90       /etc/mnttab
91
92           Mounted file system table
93
94
95       /etc/vfstab
96
97           Table of file system defaults
98
99
100       /usr/lib/fs/FSType/fsckall
101
102           Script called by mountall to perform the file system check  of  all
103           file systems of type FSType
104
105

ATTRIBUTES

107       See attributes(5) for descriptions of the following attributes:
108
109
110
111
112       ┌─────────────────────────────┬─────────────────────────────┐
113       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
114       ├─────────────────────────────┼─────────────────────────────┤
115       │Availability                 │SUNWcsu                      │
116       ├─────────────────────────────┼─────────────────────────────┤
117       │Interface Stability          │Committed                    │
118       ├─────────────────────────────┼─────────────────────────────┤
119       │Output Stability             │Uncommitted                  │
120       └─────────────────────────────┴─────────────────────────────┘
121

SEE ALSO

123       fsck(1M), fuser(1M), mount(1M), mnttab(4), vfstab(4), attributes(5)
124

DIAGNOSTICS

126       No messages are printed if the file systems are mountable and clean.
127
128
129       Error and warning messages come from fsck(1M) and mount(1M).
130

NOTES

132       At  this  time, NFS is the only remote file system supported by the -l,
133       -r, and -h options.
134
135
136
137SunOS 5.11                        17 Dec 2008                     mountall(1M)
Impressum