NAME [Toc] [Back]
mountall, umountall - mount and unmount multiple file systems
SYNOPSIS [Toc] [Back]
/sbin/mountall [-F FStype] [-l|-r] [file_system_table | -]
/sbin/mountall [-l|-r] [-m]
/sbin/umountall [-F FStype] [-k] [-l|-r]
DESCRIPTION [Toc] [Back]
mountall is used to mount file systems according to file_system_table.
By default, /etc/fstab is the file_system_table. If a dash (-) is
specified, mountall reads file_system_table from the standard input;
the standard input must be in the same format as the /etc/fstab.
Before each file system is mounted, a check is done using fsck (see
fsck(1M)) to ensure that the file system is mountable. If the file
system is not mountable, it is repaired by fsck before the mount is
umountall causes all mounted file systems except the non-removable
file systems such as root to be unmounted.
Options [Toc] [Back]
mountall and umountall recognize the following options:
-F FStype Specify the file system type (FStype) to be
mounted or unmounted.
-l Specify action on local file systems only.
-r Specify action on remote file systems only.
-k Send a SIGKILL signal to processes that have files
-m Attempt to mount all the unmounted file systems.
This option will not perform the file system
consistency check and repair.
-n Perform the file system consistency check and
repair on all unmounted file system. This option
will not mount the file systems.
DIAGNOSTICS [Toc] [Back]
Error and warning messages may originate from fsck, mount, fuser, or
umount. See fsck(1M), mount(1M), or fuser(1M) to interpret the error
and warning messages.
EXAMPLES [Toc] [Back]
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003
Mount all unmounted file systems listed in /etc/fstab:
Mount all local file systems listed in /etc/fstab:
Mount all remote file systems listed in /etc/fstab:
Mount all local hfs file systems:
mountall -F hfs -l
Unmount all NFS file systems and kill any processes that have files
opened in the file system:
umountall -F nfs -k
WARNINGS [Toc] [Back]
umountall, especially with the -k option, should be used with extreme
caution, because it can cause severe damage.
The -n option may not be available in future releases.
mountall may not be effective with some cases of LOFS file systems.
FILES [Toc] [Back]
/etc/fstab Static information about the file systems
/etc/mnttab Mounted file system table
SEE ALSO [Toc] [Back]
fsck(1M), mount(1M), fuser(1M), mnttab(4), fstab(4), signal(2)
Hewlett-Packard Company - 2 - HP-UX 11i Version 2: August 2003 [ Back ]