Skip or Permanently Bypass fsck Check on Linux

Problem

Skip forced fsck check during Linux boot.

Update: If your OS uses SystemD, the fsck check is unskippable during boot.  

tl;dr

To skip bootup fsck check once:
Navigate to GRUB menu and append fastboot to kernel /vmlinuz option.

To prevent further bootup fsck checks:
Open /etc/fstab:

nano /etc/fstab

Find the line with your root directory:
# UUID=9059c3d1-86a8-43b1-8e2b-0231ef4af6cc / ext4 defaults 1 1
Change the dump and pass values to 0 0:
# UUID=9059c3d1-86a8-43b1-8e2b-0231ef4af6cc / ext4 defaults 0 0

Solution

fsck check is typically forced during reboot on your Linux installation if the boot process detects any issues with your hard drive or file system. In essence, it is the Linux equivalent of chkdisk.

Skip fsck check once

To skip it once, you simply need to add fastboot to boot options in GRUB.

To do that:

1. Begin tapping any key when your PC loads.
2. When GRUB menu opens, navigate to your main kernel (usually first in the list), and hit e to open up boot arguments.
3. Navigate to kernel /vmlinuz line
4. Append fastboot to the end of the line

After that, you can hit Ctrl-XF10, or either of the two depending on your Linux distribution, to boot. fsck check will not run this time.

Block fsck check on a disk partition

To permanently disable fsck check on a hard disk partition, you need to edit the /etc/fstab file. There are two values you are looking for: dump and pass. Dump is used to determine whether the partition needs to be dumped, and Pass is used to determine the order in which the partitions need to be checked. Setting both to 0 will tell fsck to skip checking the partitions.

So, open /etc/fstab:

nano /etc/fstab

Find the line with the partition that is being checked:

# UUID=9059c3d1-86a8-43b1-8e2b-0231ef4af6cc / ext4 defaults 1 1

Change the dump and pass values to 0 and 0:
# UUID=9059c3d1-86a8-43b1-8e2b-0231ef4af6cc / ext4 defaults 0 0

Finally, hit Ctrl-O and Ctrl-X to save and exit. FSCK will not run on the partition in question during subsequent boots.

Please be sure to re-enable fsck when you are done. It is highly recommended to run it when the system requests to avoid file system errors. Editing fstab will permanently disable fsck checks on the partition, so errors that come up in the future may get through undetected and break your kernel or corrupt your data.


Was this article helpful?

mood_bad Dislike 8
mood Like 19
visibility Views: 43182