mountall(1M)


mountall, umountall -- mount, unmount multiple filesystems

Synopsis

/sbin/mountall [-F FSType] [-l | -r] [file_system_table]

/sbin/umountall [-F FSType] [-k] [-l | -r]

Description

The mountall command mounts filesystems according to a file_system_table. If no file_system_table is specified, then the file /etc/dfs/dfstab is used.

Before each filesystem is mounted, a sanity check is done using fsck (see fsck(1M)) to see if it appears mountable. If the filesystem does not appear mountable, it is fixed, using fsck, before the mount is attempted.

The umountall command causes all mounted filesystems except root, /proc, /stand, /dev/_tcp, and /dev/fd to be unmounted.

Command options

The mountall and umountall commands take the following options:

-F
Specify the filesystem type to be mounted or unmounted. If FSType is specified the action is limited to filesystems of this FSType.

-l
Limit the action to local filesystems.

-r
Limit the action to remote filesystem types.

-k
Send a SIGKILL signal to processes that have files opened.
The mountall and umountall commands may be executed by a privileged user only.

Files

/etc/vfstab default filesystem table

Usage

With no arguments mountall restricts the mount to all systems with ``automnt'' field set to ``yes'' in the file_system_table.

If the FSType is specified, mountall and umountall limit their actions to the FSType specified.

Diagnostics

No messages are printed if the filesystems are mountable and clean.

Error and warning messages come from fsck(1M) and mount(1M).

References

fsck(1M), fuser(1M), mnttab(4), mount(1M), signal(2), vfstab(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004