Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Example: Using Fsck to Check and Repair a Filesystem


This procedure provides a basic example on how to use fsck and other Linux commands to check and repair a filesystem.


  • You must be locally connected to the PSM server (rather than remotely using telnet or ssh).

The Linux fsck command can be used to check and repair a corrupted filesystem under some situations. This section contains one example of how to accomplish this for a non-root partition. Methods using other commands exist. Consult the Linux man pages for more complete coverage of the commands used in this example.

  1. Change to single user mode.
  2. List the mount points on your system.

    For example:

  3. Unmount all filesystems from /etc/fstab.

    To prevent data corruption, ensure that you unmount before running the fsck command on any filesystem.


    Not all filesystems can be unmounted. You should not run fsck on any mounted filesystem.

  4. Find the logical volumes.

    For example:

  5. Check and repair the filesystem.

    For example, to check and repair the /home partition:

    In the above output, there are no errors in the /home partition.

  6. Continue to check and repair other partitions. After you finish the repairs, reboot the PSM server.