Title: Theory / Unimportant / CS / command line / disk / smart
Tags: computer_to_instruction
On every note of this deck, unless a note says otherwise:
Page: man smartctl
Prefix: smartctl

Name: Self-Monitoring, Analysis and Reporting Technology
Definition: system built into most ATA/SATA and SCSI/SAS hard drives and solid-state drives. to monitor the reliability of the hard drive and predict drive failures, and to carry out different types of drive self-tests
Page: man smartctl
Abbreviation: SMART

Instruction: smartctl ... foo
Page: man smartctl
Effect: Control SMART of the device foo

Fla: --help --usage
Effect: Prints a usage message to STDOUT and exits
Flag abbreviation: -h

Fla: --version, --copyright, --license
Effect: Prints version, copyright, license, home page and SVN revision information for your copy of smartctl to STDOUT and then exits.
Flag abbreviation: -V

Fla: --info
Effect: Prints the device model number, serial number, firmware version, and ATA Standard version/revision information.
Flag abbreviation: -i

Fla: --identify
Effect: Prints an annotated table of the IDENTIFY DEVICE data.
Assuming: ata system

Fla: --all
Effect: Prints all SMART information about the disk, or TapeAlert information about the tape drive or changer.
Flag abbreviation: -a

Fla: --xall
Effect: Prints all SMART and non smart information about the disk, or TapeAlert information about the tape drive or changer.
Flag abbreviation: -x

Fla: --scan
Effect: Scans for devices and prints each device name, device type and protocol ([ATA] or [SCSI]) info.

Fla: --scan-open
Effect: Same as --scan, but also tries to open each device before printing device info.

Fla: --get=NAME
Effect: Get non-SMART device settings
Flag abbreviation: -g NAME

Fla: --json
Effect: Enables JSON output mode.
Flag abbreviation: -j

Fla: --quietmode=type
Effect: Specifies that smartctl should run in the quiet modes type
Flag abbreviation: -q type

Fla: --device=auto
Effect: attempt to guess the device type from the device name or from controller type info provided by the operating system or from a matching USB ID entry in the drive database.
Flag abbreviation: -d auto
Extra: This is the default.

Fla: --device=test
Effect: prints the guessed TYPE, then opens the device and prints the (possibly changed) TYPE name and then exits without performing any further commands.
Flag abbreviation: -d test
Extra: This is the default.

Fla: --device=ata
Effect: the device type is ATA
Flag abbreviation: -d ata
Extra: This is the default.

Fla: --device=scsi
Effect: the device type is scsi
Flag abbreviation: -d scsi
Extra: This is the default.

Fla: --device=nvme
Effect: the device type is nvme
Flag abbreviation: -d nvme
Extra: This is the default.

Fla: --device=sat
Effect: the device type is SCSI to ATA Translation (SAT)
Flag abbreviation: -d sat
Extra: This is the default.

Fla: --device=foo
Effect: this device type is for disks of type foo
Flag abbreviation: -d foo
Extra: This is the default.

Fla: --tolerance=normal
Effect: exit on failure of any mandatory SMART command, and ignore all failures of optional SMART commands.
Flag abbreviation: -T normal
Extra: This is the default.

Fla: --tolerance=conservative
Effect: exit on failure of any optional SMART command.
Flag abbreviation: -T conservative

Fla: --tolerance=conservative
Effect: ignore failure(s) of a single mandatory SMART commands. This option may be given more than once.
Flag abbreviation: -T permissive

Fla: --tolerance=verypermissive
Effect: ignore failure(s) of every mandatory SMART commands.
Flag abbreviation: -T permissive