缘由

smartctl 在不用 -d 指定设备类型的情况下会自动检测,但有时并不准确。

manual 写道 “smartctl guesses the device type if possible. If necessary, the ‘-d’ option can be used to override this guess.”, 我们需要手动指定正确的设备类型以获取 S.M.A.R.T 信息。

解决

可选择的设备类型

  • auto
  • test (同auto,但会打印出检测到的类型)
  • ata
  • scsi
  • nvme
  • sat (适用于大部分硬盘盒)

例子

假设你的设备类型为 sat 。

smartctl -d sat -a /dev/sda1

执行以上命令将输出完整的 S.M.A.R.T 信息。


0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据