If this flag is specified,
will not fork into the background and detach from its controlling terminal
to become a daemon,
and it will duplicate its system log messages on its standard error output.
This flag is primarily used for debugging, and may be specified more than once. Additional instances will result in additional debugging messages on standard error; these added messages will not be written to the system log.
|-f||Specify the configuration file to use, instead of the default /usr/local/etc/diskcheckd.conf.|
|-o||Specify the file to save disk offsets to, instead of the default /var/db/diskcheckd.offsets.|
After every 5 minutes or so of sleep time between reads (not including time spent waiting for the reads themselves to complete), diskcheckd will update its command parameter space to show its progress in scanning each disk. This report can be viewed using ps(1).
/usr/local/etc/diskcheckd.conf Default configuration file. /var/db/diskcheckd.offsets Default location of saved offsets.
To check all of /dev/ad0 for errors once every two weeks, use this entry in diskcheckd.conf:/dev/ad0 * 14 *
To check the first SCSI disk for errors at approximately 64KB/s, use the following entry:/dev/da0 * * 64
To check all disks once every four weeks:* * 28 *
If any errors occur, they will be written to syslogd(8).
diskcheckd first appeared in
.Fx 5.0 .
.An -nosplit diskcheckd and this manual page were written by
.An Ben Smithurst Aq ben@FreeBSD.org , with input from
.An Poul-Henning Kamp Aq phk@FreeBSD.org . The geom-aware version of the sector->partition translation code was added by
.An Perry Hutchison Aq email@example.com , based on a mechanism suggested by
.An Warner Losh Aq firstname.lastname@example.org .
diskcheckd Too much of the code assumes all disks have 512 byte sectors.
There are two versions of the code that attempts to identify and report which slice and/or partition contain a detected error. The older version, used when the DIOCGDINFO ioctl is available (i.e. prior to
.Fx 11.0 ), does not understand either GPT partitions or dedicated BSD disks (having the BSD disklabel in place of an MBR).