With btrfs device stats / | mail -s "BTRFS Device Status FBX2" user@mydomain and btrfs scrub status / | mail -s "BTRFS Scrub Status FBX2" user@mydomain as cronjob I am able to send the status of the btrfs to my email address. Now I want to do the same for my Samsung SSD with ext4 connected with SATA. In Cockpit I noticed, that FreedomBox is doing device health tests.
Does anybody know the command to do the test and to extract the test summary of the FreedomBox device health test of my ext4 SSD?
Try apropos smart from the command line. That will list manual pages containing the pattern “smart.” Also check the Debian wiki.
Smartmontools has something like this, but you may need to configure it. This can be noisy such as by logging temperature change of one degree.
Thank you @joseph !
I will try your suggestions on my test server. I also came across smartmontools before my forum entry, but thought, if FreedomBox is doing these tests, then it should be possible to do them by a command without additional software.
I will do some further investigation…