Skip to content

Instantly share code, notes, and snippets.

View KpuCko's full-sized avatar
🎯
Focusing

Kristian Kirilov KpuCko

🎯
Focusing
View GitHub Profile
@KpuCko
KpuCko / smartcheck.sh
Last active March 16, 2025 14:49 — forked from tommybutler/smartcheck.sh
Script to quickly scan the S.M.A.R.T. health status of all your hard drive devices in Linux (at least all the ones from /dev/sda to /dev/sdzz). You need smartctl installed on your system for this script to work, and your hard drives need to have S.M.A.R.T. capabilities (they probably do).
#!/bin/bash
# install the smartctl package first! (apt-get install smartctl)
UID=$(id -u)
if [ $UID -eq 0 ]
then
true
else