Manual pages › System administration commands (1M)
hdelogger(1M)
Hard Disk Error status report command and Log Daemon
From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.
NAME
hdelogger - Hard Disk Error status report command and Log Daemon
SYNOPSIS
/usr/sbin/hdelogger [ -s ] [ -f ] [ -D maj min ]
DESCRIPTION
This command is part of the bad block handling utility. It is executed automatically by the init in run levels 2, 3 and 4.
The hdelogger command serves two purposes. When run by the init process [process 1 - see init(1M)], this command performs the functions of the Hard Disk Error (HDE) Log Daemon. These functions include providing summaries of outstanding errors during system startup and shutdown transitions, along with adding new errors to HDE Logs and giving the revised status summaries as errors are reported by hard disk drivers. When run as the daemon, no options are used. When run as a normal command (process 1 is not its parent), this command provides on the spot reports of outstanding errors as recorded in the HDE Logs of equipped hard disks. You must be the super-user to run the command this way. The following options control report generation:
-s Specifies that summary reports are to be generated. The summary report provides sufficient information for normal bad block handling operations. This is the default.
-f Specifies that full reports are to be generated. This is intended mainly for testing the bad block handling feature, but is available in case additional detail is needed for troubleshooting complicated problems.
-D maj min
Restricts the report generation to a specific hard disk. If this option is omitted, reports will be generated for all equipped hard disks.
FILES
/dev/hdelog
SEE ALSO
hdeadd(1M), hdefix(1M), hdelog(7). Bad Block Handling, in the System Administrator's Guide.
DIAGNOSTICS
The HDE commands exit with one of three values:
0 means NORMAL, or TRUE
1 means bad command usage or execution errors
2 means BAD BLOCKS or FALSE (but command executed successfully)