Ubuntu Slow Boot

Last day my PC become very slow to boot.

boby@ok-pc-01:~$ systemd-analyze 
Startup finished in 15.777s (kernel) + 3min 1.400s (userspace) = 3min 17.178s
graphical.target reached after 1min 47.169s in userspace
boby@ok-pc-01:~$ 

It take 3 minutes and 17 seconds to boot up.

This happend after i did some changes to my 2nd hard disk and added ZFS partition. First thing i thought it was ZFS that make my PC slow.

systemd-analyze blame did not show any useful info.

systemd-analyze blame

systemd analyze blame

To find the problem, i edited the file

sudo  vi /etc/defaults/grub

Find the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Replace it with

GRUB_CMDLINE_LINUX_DEFAULT=""

Now rebuild grub.cfg with

update-grub2

Rebooted the PC. Now instead of showing Ubuntu splash screen, you get lot of text, that shows what actually your PC is doing.

Ubuntu Grub Disable Splash

From the boot message i found system waiting 1 minutes 30 seconds for mounting one of the disk partition. This is because i re-partitioned my 2nd hard disk and forget to remove the disk from /etc/fstab.

I removed the non existant disk entry from /etc/fstab and rebooted PC. Now it boot much faster.

systemd analyze

See Ubuntu

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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