mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-05 12:00:16 +00:00
18 lines
409 B
Plaintext
18 lines
409 B
Plaintext
|
# smartctl
|
||
|
# get SMART status information on your hard drives
|
||
|
|
||
|
# Quickly check the overall health of a drive
|
||
|
smartctl -H /dev/sda
|
||
|
|
||
|
# Obtain information on the drive: view the type of drive, its serial number, and so forth
|
||
|
smartctl -i /dev/sda
|
||
|
|
||
|
# initiate short tests for the drive
|
||
|
smartctl --test=short /dev/sda
|
||
|
|
||
|
# initiate long tests for the drive
|
||
|
smartctl --test=long /dev/sda
|
||
|
|
||
|
# abort the test
|
||
|
smartctl -X
|