This issue might happen to any ubuntu versions. It happends ubuntu 16.04 is widely used. It takes around 1 minute to boot. I’m afraid I’m using a fake ubuntu, especially a fake xubuntu😂.
Here are some ways to speed up booting:
- Check out services that start up on booting.
$ sudo systemd-analyze blame
And the list:
1 | 25.661s apt-daily.service |
@ apt-daily.service
This is Debian bug #844453. apt-daily.service shouldn’t be run during boot, but only some time afterward. One workaround is edit apt-daily.timer
$ sudo systemctl edit apt-daily.timer
and paste the following text into the editor window:
1 | # apt-daily timer configuration override |
This changes the “timer” that triggers apt-daily.service to run at a random time between 15 min and 45 min after boot.
Attention: My system failed to boot after doing below /etc/systemd/system.conf
actions, please prepare a USB installation before doing this. If it fails, you can use live system to revert, good luck😂
And for others recommendations, I also change /etc/systemd/system.conf
file. Uncomment
1 |
and change to
1 | DefaultTimeoutStartSec=10s |
@ apt-daily-upgrade.service
helps daily apt upgrade and clean. I don’t see I need to enable it. So I disable it by:
$ sudo systemctl disable apt-daily-upgrade.service
or you can also treat this service just like apt-daily.service
by running:
$ sudo systemctl edit apt-daily-upgrade.timer
and paste settings above.
@ For vmware-USBArbitrator.service
I tried to disable it but failed. I disabled vmware.service
and vmware-workstation-server.service
- If your booting is extremely slow, like several minutes. It probably has problem about disk alaising. Please refer here.
References:
[1] Stackoverflow
[2] Stackoverflow
[3] systemctl mask
vs systemctl disable
Extends:
[1] systemctl 命令完全指南