This is a collection of tools related to testing and monitoring hard drives.
These tools are written in python3.
This tool is used to stress test the disk by writing random data to random sectors and verifying afterwards.
Current version assumes 4096 bytes sectors and writes 10000 sectors, reporting any sectors that fail verification.
Data on the drive will be overwritten. Do not use this on a drive containing data.
Usage python3 test_hd.py /dev/sdX
where /dev/sdX
is the drive to test.
This tool was only tested on linux.
This tool reports the selected SMART values for a list of drives. The output can be grouped by drive or SMART attribute (default).
For each attribute a "warning" and a "bad" thresholds are defined. Each value output is colored in green, yellow or red representing a good, warning or bad value.
If a drive does not report an attribute, this will be shown in blue as ???
.
Configured SMART attributes and thresholds:
ID | Name | Warning | Bad |
---|---|---|---|
4 | Start Stop Count | 1000 | 2000 |
5 | Reallocated Sector Count | 0 | 5 |
9 | Power on Hours | 20000 | 40000 |
187 | Reported Uncorrectable | 0 | 5 |
194 | Temperature Celsius | 35 | 41 |
197 | Current Pending Sector | 0 | 3 |
198 | Offline Uncorrectable | 0 | 3 |
Usage: python3 report.py /dev/sda /dev/sdb ...
Options:
--help
display the help.-c or --columns
change the output column count (default 1).-d or --perdrive
group output per drive instead of per SMART attribute.