Skip to content

Instantly share code, notes, and snippets.

@brunneis
Last active March 9, 2018 14:51
Show Gist options
  • Save brunneis/3a28c6c115cec1b1da23343c6907e0a8 to your computer and use it in GitHub Desktop.
Save brunneis/3a28c6c115cec1b1da23343c6907e0a8 to your computer and use it in GitHub Desktop.
Number of hours the disk was powered on (S.M.A.R.T.)
# apt install -y smartmontools
DISK_DRIVE=sdc
sudo smartctl -a /dev/$DISK_DRIVE -d sat | grep Power_On_Hours
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment