smartd
TLDR
Start smartd in the foreground
SYNOPSIS
smartd [-d] [-c configfile] [-i interval] [-l facility] [-p pidfile] [-q opt]
DESCRIPTION
smartd is a daemon that monitors SMART (Self-Monitoring, Analysis and Reporting Technology) data from ATA/SATA and SCSI/SAS hard drives and SSDs. It detects degraded drives and predicts failures before data loss occurs.
The daemon polls devices at configurable intervals (default 30 minutes), logging changes to SMART attributes via syslog. It can send email alerts, run custom scripts, or execute tests when problems are detected.
Configuration is stored in /etc/smartd.conf, listing devices to monitor with their options. Without a config file, smartd scans and monitors all SMART-capable devices.
PARAMETERS
-d
Run in foreground (debug mode); do not fork into background-c file
Use specified configuration file instead of /etc/smartd.conf-i N
Set interval between disk checks in seconds (default: 1800)-l facility
Use specified syslog facility for logging-p file
Write PID to specified file-q option
Quiet mode options: errors, nodev, nodev0, never, onecheck, showtests-r type
Report ATA errors as type (ioctl, bpt)
CAVEATS
smartd monitors disk health but is not a backup solution. Some USB enclosures don't pass SMART data through. Virtual drives and RAID controllers may not expose SMART to the host. Start smartd via systemd: systemctl enable --now smartd.
HISTORY
smartd is part of smartmontools, originally developed by Bruce Allen starting in 2002. The package provides open-source tools for monitoring SMART data across various drive types and operating systems.
SEE ALSO
smartctl(8), smartd.conf(5), hddtemp(8)


