mountall(ADM)


mountall, umountall -- mount, unmount multiple filesystems

Syntax

/etc/mountall [ -a ]

/etc/umountall [ -k ]

Description

mountall is called by an rc2(ADM) script to mount local filesystems when the system boots and goes to multiuser mode. (mountall uses mnt(C) to mount the filesystems.) The local filesystems to be mounted are defined by entries in filesys(F) (/etc/default/filesys) that specify rcmount=yes.

Before each filesystem is mounted, mountall uses fsstat(ADM) to see if it needs checking with fsck(ADM). The default behavior, if the filesystem is reported as needing checking, is to run fsck on it before the mount is attempted. (This behavior can be modified by editing the filesystem's entry in filesys.)

mountall is called with the -a when the system autoboots. The -a option causes output messages to be written to the file /etc/bootlog, and later mailed to the system administrator (see boot(HW)). If specified, mountall passes the -a option to mnt and fsck.

umountall unmounts all mounted filesystems except the root (/), boot (/stand), proc (/proc), specfs (/dev/_tcp), and fdfs (/dev/fs) filesystems. The -k option sends a SIGKILL signal, via fuser(ADM), to processes that have files open.

Diagnostics

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

Error and warning messages come from fsck, fsstat(ADM), and mount(ADM).

Authorization

Only root may invoke these commands.

Files

/etc/default/filesys filesystem table

See also

boot(HW), filesys(F), fsck(ADM), fsstat(ADM), fuser(ADM), mnt(C), mount(ADM), rc2(ADM), signal(S-osr5)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005