Ubuntu – FSCK reports that filesystem still has errors


I'm learning a little about fsck on the fly, but what I am finding so far doesn't seem to do very much when I apply it. What would be the next step from this prompt to repair the errors I am having when booting?

fsck reports that filesystem still has errors - manual fsck required

Best Answer

  • S.M.A.R.T. information of HDD and SSD

    Check the S.M.A.R.T. information. It is easy using Disks alias gnome-disks according to this link,

    Reformating hard drive after malware damaged boot sector - scroll down to 'Maybe the disk hardware is damaged'

    Select S.M.A.R.T. via the button at (1) and check the overall assessment at (2).

    enter image description here

    Run fsck on an ext4 file system

    When I use fsck on an ext4 file system I boot from another drive and unmount the file system.

    sudo e2fsck -f /dev/sdxn

    where x is the device letter and n is the partition number, in your case /dev/sda1 according to the screenshot.

    Sometimes it helps to run this command twice. Sometimes the file system is damaged beyond repair.

    Sometimes there are bad sectors (hardware defects on the drive). Then you can mark the bad sectors (and make the system avoid them) with the following command

    sudo e2fsck -cfk /dev/sdxn

    See the manual

    man e2fsck

    for more details, and the following link for more tips about repairing file systems,

    Repair the partition table and file system of a pendrive

  • Related Question