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:
- Add the option
errors=remount-ro
to / mount at/etc/fstab
- 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.
- Add
fsck.mode=force
andfsck.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