badblocks

Search a device for bad blocks. Some usages of badblocks can cause destructive actions, such as erasing all data on a disk, including the partition table. More information: <https://manned.org/badblocks>.

Debian Debian
RUN apt-get update && \ apt-get install -y e2fsprogs
Ubuntu
RUN apt-get update && \ apt-get install -y e2fsprogs
Alpine
RUN apk add e2fsprogs
Arch Arch Linux
RUN pacman -S --noconfirm e2fsprogs
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y e2fsprogs
CentOS
RUN yum install -y e2fsprogs
Fedora
RUN dnf install -y e2fsprogs
Raspbian
RUN apt-get update && \ apt-get install -y e2fsprogs
click the source code to copy install badblocks on any operating system with command-not-found.com