Check disk health with SMART

Show the overall SMART health and key signs that a disk is about to fail.

smartctl -a /dev/sda | grep -E 'SMART overall|Reallocated|Pending|Uncorrectable'

tool
linux133 commands
tags
linuxdiskmonitoring

More linux commands

  • dd if=/dev/zero of=/tmp/testfile bs=1M count=1024 conv=fdatasync

    Write 1GB with a forced sync at the end to measure real write speed.

  • lsns -t net,pid,mnt

    List network, PID and mount namespaces, for example to see how containers are isolated.

  • systemd-cgls

    Show the systemd cgroup hierarchy as a tree, with the processes in each group.

  • find /var/log -name '*.log' -exec wc -l {} + | sort -rn | head -20

    Find the 20 biggest log files by line count.

  • tail -f /var/log/syslog /var/log/auth.log

    Follow several log files at once in one terminal.

all 133 linux commands