Extremely slow boot

I have a relatively fast laptop (SSD) but my booting times as well as shutdown times are really long.

Here’s the output of my systemd-analyze blame:

.431s lvm2-monitor.service
8.143s linux-module-cleanup.service
7.991s dev-mapper-luks\x2d2a65951d\x2d60d5\x2d4505\x2d9d70\x2daefda7b71f99.device
6.642s snapd.service
6.113s ldconfig.service
4.912s ModemManager.service
4.715s apparmor.service
3.253s systemd-modules-load.service
3.124s systemd-journal-flush.service
2.729s systemd-random-seed.service
2.567s systemd-sysusers.service
1.931s systemd-udevd.service
9.431s lvm2-monitor.service
9.431s lvm2-monitor.service
8.143s linux-module-cleanup.service
7.991s dev-mapper-luks\x2d2a65951d\x2d60d5\x2d4505\x2d9d70\x2daefda7b71f99.device
6.642s snapd.service
6.113s ldconfig.service
4.912s ModemManager.service
4.715s apparmor.service
3.253s systemd-modules-load.service
3.124s systemd-journal-flush.service
2.729s systemd-random-seed.service
2.567s systemd-sysusers.service
1.931s systemd-udevd.service
1.729s modprobe@drm.service
1.586s systemd-fsck@dev-disk-by\x2duuid-B5FD\x2d6631.service
1.455s wpa_supplicant.service
1.371s modprobe@fuse.service
1.257s upower.service
1.105s systemd-udev-trigger.service
1.070s dev-hugepages.mount
1.068s dev-mqueue.mount
1.067s sys-kernel-debug.mount
1.066s sys-kernel-tracing.mount
 952ms boot-efi.mount
 947ms systemd-binfmt.service
 857ms tmp.mount
 854ms kmod-static-nodes.service
 853ms modprobe@configfs.service
 844ms snapd.apparmor.service
 809ms tlp.service
 739ms systemd-backlight@leds:tpacpi::kbd_backlight.service
 641ms udisks2.service
 606ms systemd-journald.service
 568ms systemd-timesyncd.service
 520ms systemd-tmpfiles-setup-dev.service
 415ms systemd-update-done.service
 402ms polkit.service
 380ms avahi-daemon.service
 367ms NetworkManager.service
 339ms systemd-sysctl.service
 327ms systemd-rfkill.service
 220ms systemd-logind.service
 201ms systemd-remount-fs.service
 185ms sys-kernel-config.mount
 183ms systemd-tmpfiles-setup.service
 165ms alsa-restore.service

and systemd-analyze says:

Startup finished in 13.507s (firmware) + 1min 17.722s (loader) + 11.031s (kernel) + 53.724s (userspace) = 2min 35.985s 
graphical.target reached after 52.352s in userspace

Any clue what I could do to fix this?

Simply stop, disable and mask all unnecessary services.

Asked and answered multiple times. Please search the forum before opening new threads about same old, same old:


You can disable ModemManager, lvm

Thank you for the answers! I masked lvm2-monitor and the boot time has improved significantly.
I have some followup questions:

  • can I disable appArmor? Since a while it has displayed an error at launch time, along the lines of Cannot load AppArmor profile.
  • the two things taking up most of of the time are now firmware and loader: is loader a synonym for bootloader? If so, is there anything I can do to decrease that time? I’m thinking that decrypting the disk is probably the main reason, so not much to do there.

Thanks again.

appArmor should be left enabled.
You can also disable ModemManager.
wpa_supplicant is for touchpad → If you haven´t got a laptop, you can disable this, too.

Can you post
here ?

Here it is!

  UNIT                                                                                                  LOAD   ACTIVE SUB       DESCRIPTION
  proc-sys-fs-binfmt_misc.automount                                                                     loaded active running   Arbitrary Executable File Formats File System Automount Point
  sys-devices-pci0000:00-0000:00:02.0-drm-card0-card0\x2deDP\x2d1-intel_backlight.device                loaded active plugged   /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight
  sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d3.device                                                loaded active plugged   AU9540 Smartcard Reader
  sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d6-1\x2d6:1.0-net-wwp0s20f0u6.device                     loaded active plugged   L830-EB-00 LTE WWAN Modem
  sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d6-1\x2d6:1.2-tty-ttyACM0.device                         loaded active plugged   L830-EB-00 LTE WWAN Modem
  sys-devices-pci0000:00-0000:00:14.0-usb2-2\x2d3-2\x2d3:1.0-host0-target0:0:0-0:0:0:0-block-sda.device loaded active plugged   SD_MMC
  sys-devices-pci0000:00-0000:00:14.0-usb2-2\x2d4-2\x2d4.2-2\x2d4.2:1.2-sound-card1-controlC1.device    loaded active plugged   HP_USB-C_Universal_Docking_Station
  sys-devices-pci0000:00-0000:00:14.0-usb2-2\x2d4-2\x2d4.4-2\x2d4.4:1.0-net-enp0s20f0u4u4.device        loaded active plugged   RTL8153 Gigabit Ethernet Adapter
  sys-devices-pci0000:00-0000:00:1c.6-0000:3d:00.0-net-wlp61s0.device                                   loaded active plugged   Wireless 8265 / 8275 (Dual Band Wireless-AC 8265)
  sys-devices-pci0000:00-0000:00:1d.0-0000:3e:00.0-nvme-nvme0-nvme0n1-nvme0n1p1.device                  loaded active plugged   LENSE20256GMSP34MEAT2TA 1
  sys-devices-pci0000:00-0000:00:1d.0-0000:3e:00.0-nvme-nvme0-nvme0n1-nvme0n1p2.device                  loaded active plugged   LENSE20256GMSP34MEAT2TA 2
  sys-devices-pci0000:00-0000:00:1d.0-0000:3e:00.0-nvme-nvme0-nvme0n1.device                            loaded active plugged   LENSE20256GMSP34MEAT2TA
  sys-devices-pci0000:00-0000:00:1f.3-sound-card0-controlC0.device                                      loaded active plugged   /sys/devices/pci0000:00/0000:00:1f.3/sound/card0/controlC0
  sys-devices-pci0000:00-0000:00:1f.6-net-enp0s31f6.device                                              loaded active plugged   Ethernet Connection (4) I219-V
  sys-devices-platform-IFX0763:00-tpm-tpm0.device                                                       loaded active plugged   /sys/devices/platform/IFX0763:00/tpm/tpm0
  sys-devices-platform-IFX0763:00-tpmrm-tpmrm0.device                                                   loaded active plugged   /sys/devices/platform/IFX0763:00/tpmrm/tpmrm0
  sys-devices-platform-serial8250-tty-ttyS0.device                                                      loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS0
  sys-devices-platform-serial8250-tty-ttyS1.device                                                      loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1
  sys-devices-platform-serial8250-tty-ttyS2.device                                                      loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2
  sys-devices-platform-serial8250-tty-ttyS3.device                                                      loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3
  sys-devices-platform-thinkpad_acpi-leds-tpacpi::kbd_backlight.device                                  loaded active plugged   /sys/devices/platform/thinkpad_acpi/leds/tpacpi::kbd_backlight
  sys-devices-virtual-block-dm\x2d0.device                                                              loaded active plugged   /sys/devices/virtual/block/dm-0
  sys-devices-virtual-misc-rfkill.device                                                                loaded active plugged   /sys/devices/virtual/misc/rfkill
  sys-module-configfs.device                                                                            loaded active plugged   /sys/module/configfs
  sys-module-fuse.device                                                                                loaded active plugged   /sys/module/fuse
  sys-subsystem-net-devices-enp0s20f0u4u4.device                                                        loaded active plugged   RTL8153 Gigabit Ethernet Adapter
  sys-subsystem-net-devices-enp0s31f6.device                                                            loaded active plugged   Ethernet Connection (4) I219-V
  sys-subsystem-net-devices-wlp61s0.device                                                              loaded active plugged   Wireless 8265 / 8275 (Dual Band Wireless-AC 8265)
  sys-subsystem-net-devices-wwp0s20f0u6.device                                                          loaded active plugged   L830-EB-00 LTE WWAN Modem
  -.mount                                                                                               loaded active mounted   Root Mount
  boot-efi.mount                                                                                        loaded active mounted   /boot/efi
  dev-hugepages.mount                                                                                   loaded active mounted   Huge Pages File System
  dev-mqueue.mount                                                                                      loaded active mounted   POSIX Message Queue File System
  proc-sys-fs-binfmt_misc.mount                                                                         loaded active mounted   Arbitrary Executable File Formats File System
  run-user-1000-doc.mount                                                                               loaded active mounted   /run/user/1000/doc
  run-user-1000-gvfs.mount                                                                              loaded active mounted   /run/user/1000/gvfs
  run-user-1000.mount                                                                                   loaded active mounted   /run/user/1000
  sys-fs-fuse-connections.mount                                                                         loaded active mounted   FUSE Control File System
  sys-kernel-config.mount                                                                               loaded active mounted   Kernel Configuration File System
  sys-kernel-debug.mount                                                                                loaded active mounted   Kernel Debug File System
  sys-kernel-tracing.mount                                                                              loaded active mounted   Kernel Trace File System
  tmp.mount                                                                                             loaded active mounted   Temporary Directory (/tmp)
  systemd-ask-password-console.path                                                                     loaded active waiting   Dispatch Password Requests to Console Directory Watch
  systemd-ask-password-wall.path                                                                        loaded active waiting   Forward Password Requests to Wall Directory Watch
  init.scope                                                                                            loaded active running   System and Service Manager
  session-2.scope                                                                                       loaded active running   Session 2 of user francesco
  alsa-restore.service                                                                                  loaded active exited    Save/Restore Sound Card State
  apparmor.service                                                                                      loaded active exited    Load AppArmor profiles
  avahi-daemon.service                                                                                  loaded active running   Avahi mDNS/DNS-SD Stack
  bluetooth.service                                                                                     loaded active running   Bluetooth service
  cronie.service                                                                                        loaded active running   Periodic Command Scheduler
  dbus.service                                                                                          loaded active running   D-Bus System Message Bus
  haveged.service                                                                                       loaded active running   Entropy Daemon based on the HAVEGE algorithm
  kmod-static-nodes.service                                                                             loaded active exited    Create list of static device nodes for the current kernel
  NetworkManager.service                                                                                loaded active running   Network Manager
  polkit.service                                                                                        loaded active running   Authorization Manager
  rtkit-daemon.service                                                                                  loaded active running   RealtimeKit Scheduling Policy Service
  sddm.service                                                                                          loaded active running   Simple Desktop Display Manager
  snapd.apparmor.service                                                                                loaded active exited    Load AppArmor profiles managed internally by snapd
  systemd-backlight@backlight:intel_backlight.service                                                   loaded active exited    Load/Save Screen Backlight Brightness of backlight:intel_backlight
  systemd-backlight@leds:tpacpi::kbd_backlight.service                                                  loaded active exited    Load/Save Screen Backlight Brightness of leds:tpacpi::kbd_backlight
  systemd-binfmt.service                                                                                loaded active exited    Set Up Additional Binary Formats
  systemd-cryptsetup@luks\x2d2a65951d\x2d60d5\x2d4505\x2d9d70\x2daefda7b71f99.service                   loaded active exited    Cryptography Setup for luks-2a65951d-60d5-4505-9d70-aefda7b71f99
  systemd-fsck@dev-disk-by\x2duuid-B5FD\x2d6631.service                                                 loaded active exited    File System Check on /dev/disk/by-uuid/B5FD-6631
  systemd-journal-flush.service                                                                         loaded active exited    Flush Journal to Persistent Storage
  systemd-journald.service                                                                              loaded active running   Journal Service
  systemd-logind.service                                                                                loaded active running   User Login Management
  systemd-modules-load.service                                                                          loaded active exited    Load Kernel Modules
  systemd-random-seed.service                                                                           loaded active exited    Load/Save Random Seed
  systemd-remount-fs.service                                                                            loaded active exited    Remount Root and Kernel File Systems
  systemd-sysctl.service                                                                                loaded active exited    Apply Kernel Variables
  systemd-timesyncd.service                                                                             loaded active running   Network Time Synchronization
  systemd-tmpfiles-setup-dev.service                                                                    loaded active exited    Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service                                                                        loaded active exited    Create Volatile Files and Directories
  systemd-udev-trigger.service                                                                          loaded active exited    Coldplug All udev Devices
  systemd-udevd.service                                                                                 loaded active running   Rule-based Manager for Device Events and Files
  systemd-update-utmp.service                                                                           loaded active exited    Update UTMP about System Boot/Shutdown
  systemd-user-sessions.service                                                                         loaded active exited    Permit User Sessions
  tlp.service                                                                                           loaded active exited    TLP system startup/shutdown
  udisks2.service                                                                                       loaded active running   Disk Manager
  upower.service                                                                                        loaded active running   Daemon for power management
  user-runtime-dir@1000.service                                                                         loaded active exited    User Runtime Directory /run/user/1000
  user@1000.service                                                                                     loaded active running   User Manager for UID 1000
  wpa_supplicant.service                                                                                loaded active running   WPA supplicant
  -.slice                                                                                               loaded active active    Root Slice
  system-getty.slice                                                                                    loaded active active    system-getty.slice
  system-modprobe.slice                                                                                 loaded active active    system-modprobe.slice
  system-systemd\x2dbacklight.slice                                                                     loaded active active    system-systemd\x2dbacklight.slice
  system-systemd\x2dcoredump.slice                                                                      loaded active active    system-systemd\x2dcoredump.slice
  system-systemd\x2dcryptsetup.slice                                                                    loaded active active    Cryptsetup Units Slice
  system-systemd\x2dfsck.slice                                                                          loaded active active    system-systemd\x2dfsck.slice
  system.slice                                                                                          loaded active active    System Slice
  user-1000.slice                                                                                       loaded active active    User Slice of UID 1000
  user.slice                                                                                            loaded active active    User and Session Slice
  avahi-daemon.socket                                                                                   loaded active running   Avahi mDNS/DNS-SD Stack Activation Socket
  dbus.socket                                                                                           loaded active running   D-Bus System Message Bus Socket
  dm-event.socket                                                                                       loaded active listening Device-mapper event daemon FIFOs
  lvm2-lvmpolld.socket                                                                                  loaded active listening LVM2 poll daemon socket
  snapd.socket                                                                                          loaded active listening Socket activation for snappy daemon
  systemd-coredump.socket                                                                               loaded active listening Process Core Dump Socket
  systemd-journald-audit.socket                                                                         loaded active running   Journal Audit Socket
  systemd-journald-dev-log.socket                                                                       loaded active running   Journal Socket (/dev/log)
  systemd-journald.socket                                                                               loaded active running   Journal Socket
  systemd-rfkill.socket                                                                                 loaded active listening Load/Save RF Kill Switch Status /dev/rfkill Watch
  systemd-udevd-control.socket                                                                          loaded active running   udev Control Socket
  systemd-udevd-kernel.socket                                                                           loaded active running   udev Kernel Socket
  basic.target                                                                                          loaded active active    Basic System
  blockdev@dev-mapper-luks\x2d2a65951d\x2d60d5\x2d4505\x2d9d70\x2daefda7b71f99.target                   loaded active active    Block Device Preparation for /dev/mapper/luks-2a65951d-60d5-4505-9d70-aefda7b71f99
  cryptsetup.target                                                                                     loaded active active    Local Encrypted Volumes
  getty.target                                                                                          loaded active active    Login Prompts
  graphical.target                                                                                      loaded active active    Graphical Interface
  local-fs-pre.target                                                                                   loaded active active    Local File Systems (Pre)
  local-fs.target                                                                                       loaded active active    Local File Systems
  multi-user.target                                                                                     loaded active active    Multi-User System
  network.target                                                                                        loaded active active    Network
  paths.target                                                                                          loaded active active    Paths
  remote-fs.target                                                                                      loaded active active    Remote File Systems
  slices.target                                                                                         loaded active active    Slices
  smartcard.target                                                                                      loaded active active    Smart Card
  sockets.target                                                                                        loaded active active    Sockets
  sound.target                                                                                          loaded active active    Sound Card
  swap.target                                                                                           loaded active active    Swap
  sysinit.target                                                                                        loaded active active    System Initialization
  time-set.target                                                                                       loaded active active    System Time Set
  timers.target                                                                                         loaded active active    Timers
  veritysetup.target                                                                                    loaded active active    Local Verity Integrity Protected Volumes
  logrotate.timer                                                                                       loaded active waiting   Daily rotation of log files
  man-db.timer                                                                                          loaded active waiting   Daily man-db regeneration
  pamac-cleancache.timer                                                                                loaded active waiting   Monthly clean packages cache
  pamac-mirrorlist.timer                                                                                loaded active waiting   Generate mirrorlist weekly
  shadow.timer                                                                                          loaded active waiting   Daily verification of password and group files
  systemd-tmpfiles-clean.timer                                                                          loaded active waiting   Daily Cleanup of Temporary Directories

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
132 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

wpa_supplicant is for connecting to encrypted WiFi. You can disable it, when you don’t use WiFi.

If you don´t use bluetooth, then you can disable it.
All services related to lvm.

Thanks guys, I disabled the services I don’t use and the loading times have improved significantly!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.