# cd /usr/ports/sysutils/smartmontools # make install clean
DEVICESCAN -a -m root
On some of my hosts smartd failed to start (DEVICESCAN does not work). In this case you need to specify the disks. If you have four disks, replace the line above with:
/dev/ada0 -a -m root /dev/ada1 -a -m root /dev/ada2 -a -m root /dev/ada3 -a -m root
Add to /etc/rc.conf
# Enable smartd smartd_enable="YES"
# service smartd start
Now you will be emailed when any problems with SMART are detected.
Checking current SMART values
# smartctl -A /dev/ada0
Check smartcl man page for more information. You can run SMART self test with this tool and more...