A filesystem check might occur when a system is brought up if any of the following conditions are true:
- The filesystem requires one (eg. number of mount counts, or number of days since last check exceeds some value)
- The filesystem was uncleanly mounted (most systems)
- A filesystem check was forced (eg.
fsck.mode=forceis passed as a kernel parameter)
There are a few ways to explicitly disable filesystem checks.
Disabling Filesystem Check[edit | edit source]
Tunable System parameter[edit | edit source]
tune2fs command to change the number of mounts before a check is required to
0 to disable it.
# tune2fs -c 0 /dev/sda1
-c is the maximum number of mounts before a check is required.
The order of the fsck that occurs is dependent on the sixth field of
/etc/fstab. When setting the fs_passno field to 0, fsck will assume that the filesystem does not need to be checked.
Kernel Parameter[edit | edit source]
fsck.mode=skip parameter to the kernel on startup. This can be done either by editing the boot menu config or by changing it in the boot menu.
Inversely, you can force a check by specifying
Legacy[edit | edit source]
The old tricks of using
/fastboot or the
shutdown -f method only worked with the old SysVinit and early versions of Upstart and do not work with systemd.