-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux fsck Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to fsck on Linux, covering Arch Linux, CachyOS, and other distributions including filesystem checking, filesystem repair, and disk maintenance.
fsck (filesystem check) checks and repairs filesystems.
Uses:
- Check filesystem: Verify filesystem integrity
- Repair filesystem: Fix filesystem errors
- Disk maintenance: Maintain disk health
- Error recovery: Recover from errors
Why it matters:
- Filesystem health: Maintain filesystem
- Error recovery: Fix filesystem errors
- Data integrity: Ensure data integrity
Basic usage:
# Check filesystem
sudo fsck /dev/sda1
# Checks filesystem integrityAutomatic repair:
# Auto repair
sudo fsck -a /dev/sda1
# -a = automatic (repairs automatically)Check only:
# Check only (no repair)
sudo fsck -n /dev/sda1
# -n = no (no repair, check only)Show details:
# Verbose mode
sudo fsck -v /dev/sda1
# -v = verbose (shows details)Force check:
# Force check
sudo fsck -f /dev/sda1
# -f = force (checks even if clean)Interactive mode:
# Interactive repair
sudo fsck /dev/sda1
# Asks before repairingUnmount device:
# Unmount before checking
sudo umount /dev/sda1
# Then check
sudo fsck /dev/sda1This guide covered fsck usage, filesystem checking, and repair for Arch Linux, CachyOS, and other distributions.
- mount Guide - Mounting filesystems
- Filesystem Management - Filesystem setup
- System Recovery - System recovery
-
fsck Documentation:
man fsck
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.