Ubuntu: Difference between revisions

Content added Content deleted
Line 669: Line 669:


* Use Bootchart to find out slow services/processes:
* Use Bootchart to find out slow services/processes:
systemd-analyze time
systemd-analyze blame
systemd-analyze plot > bootchart.svg
systemd-analyze plot > bootchart.svg

* Slow boot due to nonexistent swap partition [https://askubuntu.com/questions/1030867/ubuntu-18-04-how-to-diagnose-fix-very-slow-boot askubuntu.com]:

At some point during the upgrade, the initramfs config was modified, adding a line pointing to a nonexistent swap partition.
The slow boot was because it was looking for this partition and then timing out after 30 seconds.

sudo nano /etc/default/grub

Add '''noresume''' to the below line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash noresume"
sudo update-grub

Reboot the computer


===Miscellaneous===
===Miscellaneous===