DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

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 (/) and boot (/stand) filesystem. 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)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003