From 76aabc6a4f8ea92a085d762e70ef20692ef499da Mon Sep 17 00:00:00 2001 From: David Sommerich Date: Sat, 25 Nov 2017 22:44:30 +1100 Subject: [PATCH 1/2] smartctl: add page --- pages/common/smartctl.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/smartctl.md diff --git a/pages/common/smartctl.md b/pages/common/smartctl.md new file mode 100644 index 000000000..cce60e6bd --- /dev/null +++ b/pages/common/smartctl.md @@ -0,0 +1,23 @@ +# smartctl + +> View a disk's [SMART](https://en.wikipedia.org/wiki/S.M.A.R.T.) data and other information. + +- View SMART health summary: + +`sudo smartctl --health {{/dev/}}` + +- View device information: + +`sudo smartctl --info {{/dev/}}` + +- Begin a (short) self-test: + +`sudo smartctl --test {{short}} {{/dev/}}` + +- View current/last self-test status and other SMART capabilities: + +`sudo smartctl --capabilities {{/dev/}}` + +- View SMART self-test log (if supported): + +`sudo smartctl --log selftest {{/dev/}}` From f54f9d25029f01ceff1e4409f5b3d3dd3c1cbf64 Mon Sep 17 00:00:00 2001 From: David Sommerich Date: Sun, 26 Nov 2017 16:18:09 +1100 Subject: [PATCH 2/2] smartctl: fix descriptions and improve examples --- pages/common/smartctl.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pages/common/smartctl.md b/pages/common/smartctl.md index cce60e6bd..58e672dd3 100644 --- a/pages/common/smartctl.md +++ b/pages/common/smartctl.md @@ -1,23 +1,24 @@ # smartctl -> View a disk's [SMART](https://en.wikipedia.org/wiki/S.M.A.R.T.) data and other information. +> View a disk's SMART data and other information. +> See https://en.wikipedia.org/wiki/S.M.A.R.T for more information. - View SMART health summary: -`sudo smartctl --health {{/dev/}}` +`sudo smartctl --health {{/dev/sda}}` - View device information: -`sudo smartctl --info {{/dev/}}` +`sudo smartctl --info {{/dev/sda}}` -- Begin a (short) self-test: +- Begin a short self-test: -`sudo smartctl --test {{short}} {{/dev/}}` +`sudo smartctl --test short {{/dev/sda}}` - View current/last self-test status and other SMART capabilities: -`sudo smartctl --capabilities {{/dev/}}` +`sudo smartctl --capabilities {{/dev/sda}}` - View SMART self-test log (if supported): -`sudo smartctl --log selftest {{/dev/}}` +`sudo smartctl --log selftest {{/dev/sda}}`