How to make a systemd Linux check its boot disk on startup

Wed Jun 01 2022 00:00:00 GMT+0000 (Coordinated Universal Time)

To make a systemd Linux check its boot disk on startup, you provide a special boot parameter, fsck.mode=force. So in /etc/grub something like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet fsck.mode=force"

And then remember to update grub.

Source: https://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/