Last week I installed on a Linux Mint 19 machine, a distribution that is based on Ubuntu 18.04 and has many similar elements. After several reboots, I found that the new installation was a bit slow, at least initially, lasting more than two minutes.
This could be normal in certain installations but it didn't seem normal to me considering that I used to have Windows 8 and it took less than a minute to load. So I decided look at settings to speed up Linux Mint 19 startup. Below I explain how to perform these steps and speed up the startup of Ubuntu. Part of the slow startup problems come from the processes that Systemd carries out after the system loads. These processes are not shown on the screen so we do not see which process takes the longest or slows down the system startup. Also, Systemd stops certain processes if they depend on others and these have not yet been completed, so sometimes, a 10 second process can take 60 ″ if you need multiple processes to load.
To know which processes systemd has to load and the analysis of the startup time, we have to open a terminal and write the following:
sudo systemd-analyze blame
Now, It will show us on the screen all the services and the seconds that each process takes. If we want such information not to be shown on the screen but by a file, then we have to write the following command:
systemd-analyze plot > /tmp/plot.svg
This will show us the same information but in a graphic file. In any case, with both methods we will know the processes that make it take so long to start our operating system.
Now that we have located the processes that last the longest, we have to search the internet for what is related to the Ubuntu system. Those that are not related or are dispensable we have to remove, then we can remove them with the following command:
systemctl disable NOMBRE_DE_SERVICIO
If we want to activate them, we just have to repeat the previous command and change the word "disable" to the word "enable". In the installation of Linux Mint 19 that I mentioned earlier I did all this and now the system startup does not reach 60 ″ Useful not?
Excellent help, I appreciate it very much, my notebook takes a long time to start and this information will help me to improve the system startup. Greetings and thanks.
And what is the problem when the processes are repeated many times.
8.175s NetworkManager-wait-online.service
2.493s dev-mapper-xubuntu \ x2d \ x2dvg \ x2droot.device
1.642s snapd.service
934ms dev-loop10.device
918ms dev-loop11.device
897ms systemd-journal-flush.service
896ms dev-loop1.device
892ms dev-loop13.device
884ms dev-loop2.device
871ms dev-loop0.device
869ms dev-loop5.device
865ms dev-loop8.device
842ms dev-loop14.device
837ms dev-loop4.device
803ms dev-loop3.device
800ms dev-loop7.device
769ms dev-loop9.device
754ms dev-loop6.device
720ms dev-loop12.device
517ms networkd-dispatcher.service
425ms udisks2.service
363ms upower.service
342ms NetworkManager.service
lines 1-23… skipping…
8.175s NetworkManager-wait-online.service
2.493s dev-mapper-xubuntu \ x2d \ x2dvg \ x2droot.device
1.642s snapd.service
934ms dev-loop10.device
918ms dev-loop11.device
897ms systemd-journal-flush.service
896ms dev-loop1.device
892ms dev-loop13.device
884ms dev-loop2.device
871ms dev-loop0.device
869ms dev-loop5.device
865ms dev-loop8.device
842ms dev-loop14.device
837ms dev-loop4.device
803ms dev-loop3.device
800ms dev-loop7.device
769ms dev-loop9.device
754ms dev-loop6.device
720ms dev-loop12.device
517ms networkd-dispatcher.service
425ms udisks2.service
363ms upower.service
342ms NetworkManager.service
325ms snap-organize \ x2dmy \ x2dfiles-9.mount
lines 1-24… skipping…
8.175s NetworkManager-wait-online.service
2.493s dev-mapper-xubuntu \ x2d \ x2dvg \ x2droot.device
1.642s snapd.service
934ms dev-loop10.device
918ms dev-loop11.device
897ms systemd-journal-flush.service
896ms dev-loop1.device
892ms dev-loop13.device
884ms dev-loop2.device
871ms dev-loop0.device
869ms dev-loop5.device
865ms dev-loop8.device
842ms dev-loop14.device
837ms dev-loop4.device
803ms dev-loop3.device
800ms dev-loop7.device
769ms dev-loop9.device
754ms dev-loop6.device
720ms dev-loop12.device
517ms networkd-dispatcher.service
425ms udisks2.service
363ms upower.service
342ms NetworkManager.service
325ms snap-organize \ x2dmy \ x2dfiles-9.mount
322ms systemd-logind.service
lines 1-25… skipping…
8.175s NetworkManager-wait-online.service
2.493s dev-mapper-xubuntu \ x2d \ x2dvg \ x2droot.device
1.642s snapd.service
934ms dev-loop10.device
918ms dev-loop11.device
897ms systemd-journal-flush.service
896ms dev-loop1.device
892ms dev-loop13.device
884ms dev-loop2.device
871ms dev-loop0.device
869ms dev-loop5.device
865ms dev-loop8.device
842ms dev-loop14.device
837ms dev-loop4.device
803ms dev-loop3.device
800ms dev-loop7.device
769ms dev-loop9.device
754ms dev-loop6.device
720ms dev-loop12.device
517ms networkd-dispatcher.service
425ms udisks2.service
363ms upower.service
342ms NetworkManager.service
325ms snap-organize \ x2dmy \ x2dfiles-9.mount
322ms systemd-logind.service
307ms snap-gnome \ x2dmahjongg-64.mount
lines 1-26… skipping…
8.175s NetworkManager-wait-online.service
2.493s dev-mapper-xubuntu \ x2d \ x2dvg \ x2droot.device
1.642s snapd.service
934ms dev-loop10.device
918ms dev-loop11.device
897ms systemd-journal-flush.service
896ms dev-loop1.device
892ms dev-loop13.device
884ms dev-loop2.device
871ms dev-loop0.device
869ms dev-loop5.device
865ms dev-loop8.device
842ms dev-loop14.device
837ms dev-loop4.device
803ms dev-loop3.device
800ms dev-loop7.device
769ms dev-loop9.device
754ms dev-loop6.device
720ms dev-loop12.device
517ms networkd-dispatcher.service
425ms udisks2.service
363ms upower.service
342ms NetworkManager.service
325ms snap-organize \ x2dmy \ x2dfiles-9.mount
322ms systemd-logind.service
307ms snap-gnome \ x2dmahjongg-64.mount
304ms plymouth-quit-wait.service
And it goes on ……… ..
Install POP Os 20.04 lts, I have the problem that it takes a long time to start or boot up, sometimes I press the power button to turn off the computer and restart again, I don't know why, you can support me.