Linux Filesystems and Mounts Cheat Sheet/Run fsck on an unmounted filesystem

Dispatch to the correct fsck helper based on filesystem type.

Section: Check and Repair

Run fsck on an unmounted filesystem

bash
bash
sudo fsck /dev/sdb1
Explanation

Dispatch to the correct fsck helper based on filesystem type.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Check and Repair
Force an ext filesystem check
Run a full ext filesystem check even if marked clean.
OpenIn sheetbashsame section
Auto-fix ext filesystem issues
Automatically answer yes to filesystem repairs.
OpenIn sheetbashsame section
Repair an unmounted XFS filesystem
XFS consistency repair tool.
OpenIn sheetbashsame section
Scan a device for bad sectors
Perform a read-only bad-block scan.
OpenIn sheetbashsame section
Destructive bad-blocks write test
Use only on disks you can erase completely.
OpenIn sheetbashsame section
Show SMART overall health
Quick disk health check for SMART-capable devices.
OpenIn sheetbashsame section