bcheckrc(ADM)
bcheckrc --
check and mount root and boot filesystems at system initialization
Syntax
/etc/bcheckrc [ -a ]
Description
bcheckrc is a shell script executed via
an entry in /etc/inittab by
init(M)
whenever the system is booted (or rebooted).
When the system autoboots,
init calls bcheckrc with the -a
option so that bcheckrc will run without operator intervention.
The main actions performed by bcheckrc are:
-
If the system has not autobooted, run
dumpsave(ADM)
to allow a system memory image (kernel panic dump) to be copied
from the swap area to floppy disk or tape
-
Check the status of the root and boot
filesystems and repair these, if necessary, using
fsck(ADM)
-
Clear the mounted filesystem table,
/etc/mnttab, put the entry for the root
filesystem into the mount table, and mount the boot
filesystem using
btmnt(ADM)
-
Start the system logger daemon,
syslogd(ADM)
After running bcheckrc,
init checks for the initdefault
value in /etc/inittab. This tells init
in which run-level to place the system.
Since initdefault is initially set to ``2'',
the system will be placed in the multiuser state
via the /etc/rc2 procedure.
bcheckrc may be used for several run-level states.
See also
boot(HW),
btmnt(ADM),
devnm(C),
dumpsave(ADM),
fsck(ADM),
init(M),
rc2(ADM),
shutdown(ADM),
syslogd(ADM)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003