How to Skip or Bypass a Fsck on Linux

0

Linux

Whenever I need to reboot a server I always wonder if that reboot will take more time due to the famous Fsck check on Linux. Before showing you how to skip or bypass fsck on Linux, let’s see why Fsck is needed sometimes.

Fsck is a disk health check that helps your Linux system to stay as safe and well as possible. When you have a power loss, you do a non-graceful shutdown or the file system has an inconsistent/corrupt state, the Linux system forces your boot process into a fsck check. On large filesystems an Fsck can prevent your system from booting normally and add lot of minutes (and in some cases even hours, depending on how large and busy your hard disks are) to your boot process. And if you are hosting critical applications, you may need to reboot and skip fsck on Linux to get your system online as soon as possible.

There are a few ways to bypass fsck on Linux, here you have the best and safe methods I recommend:

1) bypass fsck using shutdown command

 shutdown -rf now

That will bypass fsck using shutdown command.

2) skip fsck editing grub.conf file

There is another way to skip fsck on Linux boot and that is by editing the grub.conf file:

nano -w /boot/grub/grub.conf

Find your current kernel and add “fastboot” to the end of the line, for example:

 kernel /vmlinuz-2.6.18-371.8.1.el5 ro root=/dev/sda3 pcie_aspm=off fastboot

You might also like More from author