How to Troubleshoot/Investigate Ubuntu slow boot/startup (systemd)

Last Updated on

Keywords: Ubuntu check slow boot, Ubuntu check slow startup, Ubuntu troubleshoot slow boot, Ubuntu check slow startup, systemd, systemd-analyze blame, Kali Linux, boot time, slow boot time, slow startup time


Sometimes, Ubuntu startup takes very long time, we want to find out the cause.

(Following command is not limited to Ubuntu, it can actually be used on any Linux distributions with systemd installed)

When the systems boots up completely, we can use following command to check which process took longest time during boot time.

$ sudo systemd-analyze blame
systemd-analyze blame output from Kali Linux
systemd-analyze blame output from Kali Linux

We can also use head to see top 10 slowest ones

$ sudo systemd-analyze blame | head
sudo systemd-analyze blame | head output from Kali Linux
sudo systemd-analyze blame | head output from Kali Linux

Leave a Reply

Your email address will not be published. Required fields are marked *