Ubuntu 16.04 Very slow boot
I've just upgraded to 16.04 LTS
and am sorry I did it. 15 had some quirks, but this is off the wall.
It takes forever to boot, systemd-analyze blame
reports:
3min 261ms powerd.service
22.414s wicd.service
22.094s click-system-hooks.service
17.258s NetworkManager-wait-online.service
16.820s apport.service
16.813s irqbalance.service
16.544s networking.service
16.279s stunnel4.service
12.719s grub-common.service
12.047s dev-sda1.device
11.933s ondemand.service
11.382s speech-dispatcher.service
9.283s lightdm.service
8.955s apt-daily.service
8.020s apparmor.service
7.109s pulseaudio.service
6.685s winbind.service
6.673s nmbd.service
6.410s samba-ad-dc.service
6.036s [email protected]
5.834s ModemManager.service
5.182s console-kit-log-system-start.service
5.001s systemd-user-sessions.service
Can someone suggest anything?
Solution 1:
I had partial success today. One of the most helpful diagnostics is:
systemd-analyze plot > <some_file_name>.html
Use a browser to view it. This made it clear that powerd.service was the biggest problem. It never actually got started, and the boot just waited until it timed out. Since powerd.service never really started, I figured I wouldn't miss it if it wasn't there, and, sure enough, I removed the powerd package and now the boot time is just slightly over a minute(vs. 3.5 minutes with it).
I really don't know if powerd is supposed to be running on my computer(a laptop) as it seems all the documentation I can find describes it's use for a phone. Anyone know if this is true?
The next slowest service to start is wicd.service. This actually gets started, but takes about 36 seconds. Not sure why, but that is the next thing I will look at.
Solution 2:
My /etc/fstab
had two swap partitions. I used blkid
, identified the working swap. Then used gsku gedit /etc/fstab
to edit the file, commenting out the redundant swap. Boot time greatly improved from several minutes to seconds.