Do you want to set by default repair file systems with inconsistencies
during boot time will never pause and asking any questions.
Open the file /etc/default/rcS
By default the FSCKFIX is disable (no), so just change the line to enable(yes),
save a file and reboot. Another way is just to create a file and reboot the system,
File system checks while booting in CentOS for force fsck on next booting,
-r for rebooting system and
-F Force fsck on reboot.
Do you require to run fsck when every rebooting system, make a file and insert the trace lines,
or just create a file and reboot the system,