Read-Only Filesystem Check With e2fsck

Scan an ext filesystem for errors and report without repairing.

LinuxFilesdiskDiagnosticsMedium risk
Run sudo e2fsck -fn /dev/sdb1 to check and report without making changes.

01Command

Command
$ sudo e2fsck -fn /dev/sdb1

02What it does

The -n flag answers every prompt no and -f forces a check even if the filesystem looks clean, so you can assess damage on an unmounted volume before deciding to repair. Repairing blindly on a production system is how data is lost, which is why the read-only check comes first.

03Risk

RiskMedium risk
Requirementssudo apt install e2fsprogs
!Warning: Never run e2fsck on a mounted read-write filesystem; it can corrupt data. Unmount first.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-10-13 · Category: System & Settings

06Related solutions