Linux Backup and Disk Imaging Cheat Sheet/Filter kernel logs for storage messages

Look for hardware and filesystem errors in kernel logs.

Section: Troubleshooting

Filter kernel logs for storage messages

bash
bash
dmesg | egrep -i 'sd[a-z]|nvme|md|I/O error|ext4|xfs'
Explanation

Look for hardware and filesystem errors in kernel logs.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Troubleshooting
Search journal for disk errors
Kernel journal view for storage-related problems.
OpenIn sheetbashsame section
Show disk throughput and utilization
Inspect per-device read/write rates and utilization over time.
OpenIn sheetbashsame section
Watch per-process I/O usage
Find which processes generate the most disk I/O.
OpenIn sheetbashsame section
Show per-process I/O counters
Track read/write activity by process over time.
OpenIn sheetbashsame section
Show system-wide I/O wait and block activity
Quick check for iowait, swap, and block device pressure.
OpenIn sheetbashsame section
Interactive disk usage explorer
Find large paths interactively with a terminal UI.
OpenIn sheetbashsame section