BSD Ports

sysutils/smartmontools 7.5_3 FreeBSD

S.M.A.R.T. disk monitoring tools

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
34337efb7a
License
GPLv2+
Categories
sysutils
Package size
584.1 KiB, 2049.2 KiB installed

Description

The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.) built into most modern SATA, NVMe and SCSI hard disks. It is derived from the smartsuite package, and includes support for ATA/ATAPI/SATA disks and SCSI disks and tape devices.

In the other systems

SystemPortVersion
FreeBSDsysutils/smartmontools7.5_3
OpenBSDsysutils/smartmontools7.5
NetBSDsysutils/smartmontools7.4
DragonFlysysutils/smartmontools7.4_2
MidnightBSDsysutils/smartmontools7.5

Install

Binary package:

pkg install smartmontools

From the ports tree:

cd /usr/ports/sysutils/smartmontools/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	smartmontools>0:sysutils/smartmontools

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest7.5_27.5_37.37.57.5_3
FreeBSD:14:quarterly7.5_27.5_2n/a7.57.5_2
FreeBSD:15:latest7.5_37.5_3n/a7.57.5
FreeBSD:15:quarterly7.5_27.5_2n/an/an/a
FreeBSD:16:latest7.5_27.5_3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Configuration

Options name: sysutils_smartmontools

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
compiler:c++11-lib cpe
Service scripts
smartd

Message after installing

smartmontools has been installed

To check the status of drives, use the following:

	/usr/local/sbin/smartctl -a /dev/ad0	for first ATA/SATA drive
	/usr/local/sbin/smartctl -a /dev/da0	for first SCSI drive
	/usr/local/sbin/smartctl -a /dev/ada0	for first SATA drive

To include drive health information in your daily status reports,
add a line like the following to /etc/periodic.conf:
	daily_status_smart_devices="/dev/ad0 /dev/da0"
substituting the appropriate device names for your SMART-capable disks.

To enable drive monitoring, you can use /usr/local/sbin/smartd.
A sample configuration file has been installed as
/usr/local/etc/smartd.conf.sample
Copy this file to /usr/local/etc/smartd.conf and edit appropriately

To have smartd start at boot
	echo 'smartd_enable="YES"' >> /etc/rc.conf

To enable verification of the drivedb updates, install the "security/gnupg"
package.

Files

Manual pages 4
  • smartctl(8)
  • smartd(8)
  • smartd.conf(5)
  • update-smart-drivedb(8)
pkg-plist 12
  • etc/periodic/daily/smart
  • etc/smartd.conf.sample
  • etc/smartd_warning.sh
  • share/man/man5/smartd.conf.5.gz
  • share/man/man8/smartd.8.gz
  • share/man/man8/smartctl.8.gz
  • share/man/man8/update-smart-drivedb.8.gz
  • sbin/smartctl
  • sbin/smartd
  • sbin/update-smart-drivedb
  • @sample share/smartmontools/drivedb.h.sample
  • @dir etc/smartd_warning.d
distinfo 1
FileSizeSHA256
smartmontools-7.5.tar.gz1.122317e+06690b83ca331378da9ea0d9d61008c4b22dde391387b9bbad7f29387f2595f76e
Master sites 1
  • SF

Commit history 2

DateCommitCreditsLog message
34337efb7a Oleksii Samorukov sysutils/smartmontools: migrate to the libusb api
This should fix problems with CURRENT and aligned with an upstream change. While here - also update pkg-message PR: 297564
0937ce481b Cy Schubert sysutils/smartmontools: Fix 16-CURRENT build
16-CURRENT added capsicum support to libusb in src commit 749318f2ae56. Chase this change by adding a couple of #ifdefs to determine whether building under 16-CURRENT or not. Approved by: portmgr (implicit, fix it)