Force FSCK on boot in Ubuntu

FSCK command is the counter part of chkdsk in windows that can be used by ubuntu linux users to check and fix file integrity and inconsistencies. If you want to check always FSCK on boot you can do the following

  • Open the file /etc/default/rcS
  • Change the following line


  • Then FSCK command will be run on every boot