How to Use ‘fsck’ to Repair File System Errors in Linux

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Marin Todorov

I am a bachelor in computer science and a Linux Foundation Certified System Administrator. Currently working as a Senior Technical support in the hosting industry. In my free time I like testing new software and inline skating.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

14 Responses

  1. Domingo says:

    Thank a lot Sir, was very useful

  2. Michael Plemmons says:

    I tried it from the recovery mode and I get to the screen to switch to read/write and click yes, then it says dev/sda1 is mounted and takes me back to recovery menu.

    If I click fsck again, it says this operation requires me to be in read-only mode and the last operation requested switched me to read/write. To go back to read-only, reboot the system. I’ve done this over and over. I’m in Ubuntu 18.10. Any ideas? Thanks

  3. Hung says:

    I have a VPS CentOS 7, If following this tutorial, will i lose my data on vps ?

  4. Jim says:

    What version of Ubuntu does this article relate to? People like me are still using 16.04 because of all of 18.04’s problems and I don’t see the graphic just below the line, “You can then resume to normal boot, by selecting “Resume”. Is that GUI ONLY in 18.04?

  5. Rajan bhandari says:

    My PC is not showing 64 bit while I try to install it. What to do please help me..

  6. R. Owen Sterling says:

    Classic Ubuntu user arrogance, to equate Ubuntu with all of Linux in the headline, then list *Ubuntu-specific recovery-mode options as if they were universal. Just about every “recovery mode” I’ve ever seen, even under GRUB 2, is a command line prompt with very limited options. Well the first half of the article is universal, at least.

  7. Tswelelopele Tsele says:

    Still doesn’t work. I can’t access root, my command starts with (initramfs)

  8. Marin Todorov says:

    @Eric, if you have an issue with a windows partition, it would be better to use chkdsk windows utility. In Linux, there is fsck.ntfs which is a symlink to ntfsfix.

    ntfsfix is a utility that fixes some common NTFS problems. ntfsfix is NOT a Linux version of chkdsk. It only repairs some fundamental NTFS inconsistencies, resets the NTFS journal file and schedules an NTFS consistency check for the first boot into Windows.

  9. Eric D. says:

    Interesting, but what about an external drive that giving problems running Windows 10? will fsck “fix” that drive as well? And is the syntax the same? (Just point your Linux machine to it and run fsck??)

    • Ravi Saive says:

      @Eric,

      I don’t think fsck recognize windows filesystem, never tried it. I think you should give a try and see..:)

    • R. Owen Sterling says:

      If you have the ntfs4g binaries installed, fsck can evaluate and even fix said partitions; that said, Windows specific tools, such as CHKDSK are (for once) less destructive and get better results if you’re trying to preserve as much data as possible.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.