How to Enable or Disable File System Check (FSCK) on System booting
We have already discussed about it on this post describes about enable or disable fsck on system booting time, here’s several ways of accomplishing with below steps,
Grub boot parameter
Placing command files on your root device
Active reboot without FSCK
Use Grub boot parameter:
You need to edit grub boot configuration file and placing command files on your root device at end of the line . For example just see the following lines,
kernel /vmlinuz-2.6.18-238.el5 ro root=LABEL=/ rhgb quiet fastboot
Also can disable the filesystem check on boot.
To change /etc/fstab option:
Another option is use /etc/fstab, 0 to disable fsck checking at sixth field.
Open the /etc/fstab and check the line end of the mount point option the values to 0.
Note : The root device should be 1. Other partitions should be 2, or 0 to disable fsck checking. For example verify the below line,
LABEL=/root1 /root ext4 defaults 0 0
Finally save " :wq! " and quit.
Active reboot without FSCK use shudown command with parameter,
-r Reboot after shutdown.
-f Skip fsck on reboot.
To enable a filesystem check on boot.
Another option is open autofsck file and add the below content, if it doesn't exist just create it.
Force Regular Filesystem Checks