e2fsck -p /dev/sdb1

Category: Administration

e2fsck -p /dev/sdb1

Automatically repair filesystem errors

Runs a filesystem check on /dev/sdb1 in preen mode, fixing problems that are safe to repair automatically and stopping on anything serious. The filesystem must be unmounted for a reliable check. Preen mode is what runs at boot when the mount count or error flag demands a check.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.