User Vivek Gite is back again with another FreeBSD tutorial, this time on how to check the health of your HDDs and SSDs. The tool in question is called smartmontools, available in the ports system of the FreeBSD Open Source operating system. See the link below for the full set of instructions.

How do I read my hard disk/SSD health using smartctl command on FreeBSD operating system? How can I hard drive health on FreeBSD and find out if my disk is dying?

The Self-Monitoring, Analysis, and Reporting Technology System (SMART) built into most modern hard disks. The purpose of SMART is to monitor the reliability of the hard drive and predict drive failures, and to carry out different types of drive self-tests under FreeBSD operating systems. This page shows how to install smartmontools on FreeBSD and use smartcl to check hard drive health on FreeBSD.

Full tutorial: https://www.cyberciti.biz/faq/how-to-check-hard-drive-health-on-freebsd/