↑ ↓ select, Enter open, Esc close

Show hardware errors and warnings in the kernel log

root@server
dmesg -T --level=err,warn

Filters the kernel messages since the last boot to the error and warning levels. Typical hardware indicators are I/O error, ata1: failed command, EXT4-fs error, Machine Check or EDAC. -T converts the timestamps into clock times.

Note: The -T times can be off after suspend or clock jumps. journalctl -k -p err -b -1 shows messages from earlier boots.

Also searched as

  • find disk errors in log
  • show kernel error messages
  • search for i/o error linux

Related one-liners

All in System and hardware

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.