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,
Filesystem tunable
Grub boot parameter
Placing command files on your root device
Active reboot without FSCK
Use Grub boot parameter:
fastboot
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,
# vim /boot/grub/grub.conf
or
# vim /boot/grub.conf
or
# vim /boot/grub.conf
kernel /vmlinuz-2.6.18-238.el5 ro root=LABEL=/ rhgb quiet fastboot
Also can disable the filesystem check on boot.
# touch /fastboot
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.
Use shutdown:
Active reboot without FSCK use shudown command with parameter,
# shutdown -rf
Parameter reference:
-r Reboot after shutdown.
-f Skip fsck on reboot.
To enable a filesystem check on boot.
# touch /forcefsck
Another option is open autofsck file and add the below content, if it doesn't exist just create it.
/etc/sysconfig/autofsck
$ sudo vi /etc/sysconfig/autofsck
AUTOFSCK_DEF_CHECK=yes
Force Regular Filesystem Checks
# sudo tune2fs -l /dev/sda5
Comments (0)