Automatically answer yes to filesystem repairs.
Section: Check and Repair
Auto-fix ext filesystem issues
bash
bash
sudo e2fsck -y /dev/sdb1Explanation
Automatically answer yes to filesystem repairs.
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.
Run fsck on an unmounted filesystem
Dispatch to the correct fsck helper based on filesystem type.
Destructive bad-blocks write test
Use only on disks you can erase completely.
Show SMART overall health
Quick disk health check for SMART-capable devices.