Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

fsck

Check and repair filesystem

Syntax

fsck [OPTION]... [DEVICE]...

Common Options

-ACheck all filesystems
-aAuto repair
-rInteractive repair
-yAnswer yes to all
-nCheck only, no repair
-fForce check
-tSpecify filesystem type

Common Examples

fsck /dev/sdb1

Check and repair partition

fsck -y /dev/sdb1

Auto-confirm repairs

fsck -n /dev/sdb1

Check without repair

fsck -A -y

Check all filesystems

Related Commands

Related Tools

More Code & Dev Tools