在 QNAP NAS 中安装 HD Sentinel

这篇记录基于 qnap-arm-hdsentinel,用于在 QNAP NAS 上检查磁盘状态并生成可浏览的报告。

操作概要

  1. 在控制面板开启 SSH,以管理员账号登录 NAS。
  2. 在用户目录创建 .hdsentinel 工作目录,下载与设备 CPU 架构匹配的程序。
  3. 增加执行权限后先手动运行,确认磁盘信息能正确读取。
  4. 将 HTML 报告输出到公共目录,再配置定时任务更新报告。
mkdir .hdsentinel
cd .hdsentinel
wget https://www.hdsentinel.com/hdslin/armv5/hdsentinelarm
chmod +x hdsentinelarm
./hdsentinelarm

例如,可以每十分钟刷新一次报告:

*/10 * * * * /share/homes/<YOUR_USER>/.hdsentinel/hdsentinelarm -r /share/Public/report.html -html

下载前请确认程序来源和 NAS 的 CPU 架构;不同 QTS 版本对计划任务的保存方式也可能不同。