Scan for Bad Sectors With badblocks
Read a whole disk and report sectors that cannot be read.
01Command
$ sudo badblocks -sv /dev/sdb02What it does
Without -w, badblocks only reads, so it never overwrites data while revealing failing sectors on a suspicious drive. A long verbose scan is exactly the kind of unattended job the terminal is built for, and it can log progress for review.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- badblocks.8.en.html manual page (Debian bookworm)Evidence: Documents badblocks and the read-only scan options -s and -v.
Last verified: 2026-10-13 · Category: System & Settings
06Related solutions
Launch an interactive process viewer with color meters for CPU cores, memory, and swap, plus search, sort, and kill controls.
Show total, used, and available space plus usage percentage for every mounted filesystem in human-readable units.
autoremove deletes no-longer-needed dependency packages, and clean wipes the downloaded .deb cache in /var/cache/apt/archives.