Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Speed Up systemd Boot Time in Linux

· 5 min read · Home Tech

In this article
  1. Why systemd Boot Time Matters
  2. Measuring Your Current Boot Time
  3. Common Causes of Slow Boot
  4. How to Disable or Mask Slow Services
  5. Optimizing Network and Filesystem Settings
  6. Using Kernel Parameters to Reduce Boot Time
  7. Comparing systemd with Other Init Systems
  8. Safety and Precautions
  9. Frequently Asked Questions

To speed up systemd boot time in Linux, you need to identify which services and units are slowing down the boot process, then disable, mask, or optimize them. This guide shows you how to measure boot performance, find the culprits, and apply the most effective fixes without breaking your system.

Why systemd Boot Time Matters

systemd is the default init system on most major Linux distributions, including Ubuntu, Debian, Fedora, Arch, and openSUSE. It is responsible for starting all services, mounting filesystems, and bringing the system to a usable state. A slow boot is often caused by services that wait for network availability, filesystem checks, or hardware that is slow to respond. Understanding how systemd manages startup is the first step to making it faster.

Measuring Your Current Boot Time

Before making any changes, you need a baseline. systemd provides built-in tools to analyze boot performance:

  • systemd-analyze – shows total boot time, plus time spent in firmware, bootloader, kernel, and userspace.
  • systemd-analyze blame – lists all running units sorted by the time they took to start.
  • systemd-analyze critical-chain – shows the chain of units that are on the critical path to boot completion.
  • systemd-analyze plot – generates an SVG graph of all unit start times, which you can open in a browser.

Run systemd-analyze first to see the overall picture. Then use systemd-analyze blame to identify the biggest offenders. A service that takes 5 seconds to start is a prime candidate for optimization.

Common Causes of Slow Boot

Several recurring issues cause slow boots on many systems:

  • Network wait – services like NetworkManager-wait-online.service wait for a network connection before continuing. This can add 10-30 seconds if the network is slow or unavailable.
  • Filesystem checks – fsck runs on every boot unless the filesystem was cleanly unmounted. On large drives, this can take several seconds.
  • Unnecessary services – many distributions enable services that you never use, such as printer daemons (cups), Bluetooth, or Avahi.
  • Slow hardware initialization – firmware and kernel initialization times are mostly out of your control, but you can sometimes reduce them by disabling unused hardware in the BIOS.
  • Snap or Flatpak services – these containerized applications often start background services that add to boot time.

How to Disable or Mask Slow Services

Once you have identified a service that is slow and unnecessary, you can disable it so it does not start at boot:

  1. Check if the service is enabled: systemctl is-enabled service-name.service
  2. Disable the service: sudo systemctl disable service-name.service
  3. If the service is started by another unit (like a socket or a timer), you may need to disable that as well. Use systemctl list-dependencies to find what pulls it in.
  4. For services that are started by udev or hardware detection, you may need to mask them: sudo systemctl mask service-name.service. Masking creates a symlink to /dev/null, making it impossible to start.

Be careful: only disable services you understand. For example, disabling systemd-journald would break logging. A safer approach is to use systemd-analyze critical-chain to see which services are actually on the critical path and focus on those.

Optimizing Network and Filesystem Settings

Two high-impact tweaks are common:

  • NetworkManager-wait-online.service – this service waits for the network to be fully up before continuing. If you do not need network at boot (for example, if you use DHCP and do not mount network drives), you can disable it: sudo systemctl disable NetworkManager-wait-online.service. Alternatively, set NoWaitOnline=yes in your NetworkManager config.
  • Filesystem check frequency – on ext4, you can set the maximum mount count to 0 to disable periodic checks: sudo tune2fs -c 0 /dev/sdX. This is safe for most systems, but if you have a history of filesystem corruption, it is better to keep checks enabled.

Another option is to enable the fstrim.timer for SSDs, which runs TRIM periodically and can improve long-term performance, though it does not directly speed up boot.

Using Kernel Parameters to Reduce Boot Time

You can pass kernel parameters at boot to skip certain checks. Edit /etc/default/grub and modify the GRUB_CMDLINE_LINUX_DEFAULT line. Common parameters include:

  • quiet – suppresses most kernel messages, which can slightly speed up boot by reducing console output.
  • splash – shows a splash screen; does not affect speed.
  • systemd.show_status=false – hides systemd status messages, again reducing console output.
  • noresume – skips resume from hibernation. Only use if you never hibernate.

After changing the file, run sudo update-grub (on Debian/Ubuntu) or sudo grub-mkconfig -o /boot/grub/grub.cfg (on Arch). These parameters can shave off a second or two, but the biggest gains come from disabling services.

Comparing systemd with Other Init Systems

Some users switch to alternative init systems like OpenRC or runit to get faster boot times. However, systemd is deeply integrated into most distributions, and switching is not trivial. On modern hardware, the difference is often less than a second. The real bottleneck is usually hardware initialization (firmware and kernel), which is independent of the init system. Therefore, optimizing systemd is usually more practical than replacing it.

Safety and Precautions

Disabling services can have unintended consequences. Always:

  • Back up your configuration files before editing.
  • Test one change at a time and reboot to see the effect.
  • Keep a live USB or recovery mode available in case you disable a critical service.
  • Never disable systemd-udevd, systemd-journald, or systemd-logind – these are essential.

If you are unsure about a service, search for its name online or check the documentation for your distribution. Most services have a description that explains what they do.

Frequently Asked Questions

What is a good boot time for Linux?

On a modern SSD, a boot time of 10-15 seconds is typical. On an HDD, 20-30 seconds is normal. If your boot takes longer than 30 seconds on an SSD, there is likely a service that can be optimized.

Can I make my boot faster by disabling NetworkManager-wait-online?

Yes, if you do not need network access at boot (e.g., for NFS mounts or remote SSH), disabling this service can save 5-10 seconds. If you do need network, you can set a timeout instead of waiting indefinitely.

Is it safe to disable the printer service (cups)?

If you do not have a printer, disabling cups is safe. If you later need to print, you can start it manually with systemctl start cups.

Why does my boot time vary between reboots?

Boot time can vary due to hardware detection, filesystem checks, and network timeouts. Use systemd-analyze multiple times to get an average. Also, check if a service is failing and retrying, which can add delays.

Does using an SSD make the biggest difference?

Yes, upgrading from an HDD to an SSD is the single most effective way to reduce boot time, often cutting it in half or more. After that, optimizing services is the next step.