How to check disk (CHKDSK) NTFS3 under Linux

By default, it will only check the filesystem and stop if an error occur, which cannot repaired easily.

If you want that it checks the drives and repair automatically:

  1. Add the option errors=remount-ro to / mount at /etc/fstab
  2. The last number of each line is for fsck. 1 is used for the root partition, 2 for any other partition, which can be checked.
  3. Add fsck.mode=force and fsck.repair=yes to the kernel parameter at /etc/default/grub

Now it checks the filesystem on every boot and tries to repair it. But, it takes time… It is like running CHKDSK on windows running on boot.

Have look at this for more information: systemd-fsck@.service