Skip to content

netcup Documentation

Server

Fixing File System Errors

Learn how to repair your file system using fsck.

If you encounter file system errors while booting your system, try using fsck to repair the file system.

Executing the following steps may result in data loss if the file system is significantly damaged. Only execute these steps if you have extensive knowledge of Linux system administration and understand the consequences of running this command. Back up your data before proceeding.

  1. Use the following command to view a list of all hard disks and partitions on the system.: 

    lsblk
     
  2. Start the fsck process for the affected partition. The following command immediately checks the partition for file system errors and fixes them without prompting:
     

    fsck -C0 -y -f /dev/vda3
     

Replace /dev/vda3 with the necessary partition.

Last update: 2 March 2026

Was this article helpful?