AptLynx

Command-line tool

e2fsprogs

brew/e2fsprogs

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Utilities for the ext2, ext3, and ext4 file systems

At a glance

Type
Command-line tool
Install on
macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

macOS

brew install e2fsprogs

Linux

brew install e2fsprogs

Search a disk for bad blocks by using a non-destructive read-only test

sudo badblocks /dev/sdX

Search an unmounted disk for bad blocks with a [n]on-destructive read-write test

sudo badblocks -n /dev/sdX

Search an unmounted disk for bad blocks with a destructive [w]rite test

sudo badblocks -w /dev/sdX

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents