How to Stop Ubuntu from Automatically Checking the Disk on Boot

The Boot Delay

When you start up an Ubuntu Linux system, the bootloader (GRUB) occasionally forces a system-wide disk check (known as `fsck` or file system consistency check) before allowing the operating system to load. By default, Ubuntu triggers this check based on two criteria: either the system has been booted a specific number of times without a check (e.g., every 30 mounts), or a certain amount of time has passed since the last check (e.g., 180 days). While this is a critical safety feature designed to catch hard drive corruption early, it can add minutes to your boot time, completely ruining the fast startup experience of a modern solid-state drive (SSD).

Adjusting File System Check Frequency

To eliminate unexpected boot delays and stop Ubuntu from automatically checking your disk based on arbitrary mount counts or time intervals, you must modify the ext4 file system parameters using the `tune2fs` utility.

You must perform this action via the terminal. Open a terminal (Ctrl+Alt+T). First, identify the partition name of your root hard drive by typing df -h / and pressing Enter. Look under the “Filesystem” column (it will look something like `/dev/sda1` or `/dev/nvme0n1p2`). Once you know the partition name, you can disable the automatic triggers. To disable the mount-count trigger (the “check every 30 boots” rule), type sudo tune2fs -c 0 /dev/sda1 (replace `/dev/sda1` with your actual partition). To disable the time-based trigger, type sudo tune2fs -i 0 /dev/sda1. Press Enter after each and provide your password. Ubuntu will no longer perform surprise disk checks. Note: If your system crashes or loses power, Ubuntu will still automatically run `fsck` on the next boot to repair damage; this only stops the scheduled checks.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.