Server Maintenance

FSCK Options and Maintenance

Updated January 2026 6,248 views 1 min read
Server Maintenance | Updated January 2026

fsck (file system check) scans and repairs Linux filesystems. It is used to fix corrupted filesystems after unexpected shutdowns, disk errors, or file system inconsistencies.

Server Admin Only

fsck requires root access and unmounted filesystems

This is a server-level operation. Shared hosting customers cannot and do not need to run fsck. If you suspect filesystem issues on your account, open a support ticket.

01. Common Usage

# Check a filesystem (dry run, no changes)
fsck -n /dev/sda1

# Check and auto-repair
fsck -y /dev/sda1

# Force check even if filesystem seems clean
fsck -f /dev/sda1

# Check specific filesystem type
fsck.ext4 /dev/sda1
Critical

Never run fsck on a mounted filesystem. This can cause catastrophic data loss. The filesystem must be unmounted first, or run fsck from a rescue/recovery environment. For the root filesystem, boot into single-user mode or a rescue disk.

02. Key Options

  • -n - No changes (read-only check)
  • -y - Auto-answer yes to all repair prompts
  • -f - Force check even if clean
  • -p - Auto-repair safe problems without prompting
  • -C - Show progress bar

Filesystem Issues?

Open a Support Ticket

Quick Recap

  1. fsck checks and repairs Linux filesystems
  2. Never run on mounted filesystems
  3. -n for dry run, -y for auto-repair
  4. Boot into rescue mode for root filesystem checks
  5. Shared hosting: Contact support for filesystem issues

Server administration · Last updated March 2026 · Browse all Server Maintenance articles

Share: X in Reddit f Email
  • 132 Users Found This Useful

Was this answer helpful?

Related Articles

Clear cPanel Eximstats DB and Repairing the Eximstats DB

Server Maintenance | Updated January 2026 The Eximstats database in cPanel tracks email...

Repairing and Optimizing all MySQL and MariaDB Databases on the Server

Server Maintenance | Updated January 2026 Regularly repairing and optimizing MySQL/MariaDB...

Create CXS Quarantine Directory

Server Maintenance | Updated November 2026 ConfigServer eXploit Scanner (CXS) quarantines...

Failed to start tailwatchd - Unit tailwatchd service entered failed state

Server Maintenance | Updated January 2026 The error Failed to start tailwatchd - Unit...

How to convert InnoDB to MyISAM

Server Maintenance | Updated January 2026 Converting tables between InnoDB and MyISAM storage...



Save 30% on web hosting - Use coupon code Hosting30