在我的戴尔 Inspiron 5110 上,Ubuntu 需要 1 分 18 秒左右才能进入登录屏幕。然后大约 30 秒后桌面才会加载。我的主页没有加密。因此建议的解决方案 在这篇文章中不适用。
systemd-analyze blame 的输出是
27.732s click-system-hooks.service
18.504s dev-sda5.device
17.309s snapd.service
15.811s winbind.service
14.011s apparmor.service
12.583s NetworkManager-wait-online.service
9.507s grub-common.service
8.834s accounts-daemon.service
8.538s gpu-manager.service
7.846s teamviewerd.service
6.096s NetworkManager.service
5.523s upower.service
4.510s networking.service
4.103s smbd.service
3.626s thermald.service
3.596s dns-clean.service
3.592s binfmt-support.service
3.581s runhwactivator.service
3.513s apport.service
3.505s apache-htcacheclean.service
3.499s rsyslog.service
3.475s pppd-dns.service
3.386s wpa_supplicant.service
2.727s systemd-logind.service
2.538s systemd-rfkill.service
2.530s plymouth-start.service
2.499s avahi-daemon.service
2.257s colord.service
2.183s systemd-tmpfiles-setup.service
2.115s [email protected]
1.908s lightdm.service
1.898s polkit.service
1.830s keyboard-setup.service
1.763s console-setup.service
1.694s dev-loop4.device
1.665s systemd-tmpfiles-setup-dev.service
1.576s dev-loop3.device
1.549s systemd-backlight@backlight:acpi_video0.service
1.379s systemd-update-utmp.service
1.357s dev-loop0.device
1.264s systemd-backlight@backlight:acpi_video1.service
1.189s systemd-modules-load.service
1.164s systemd-resolved.service
1.129s systemd-udev-trigger.service
1.129s sys-kernel-debug.mount
970ms systemd-udevd.service
932ms snap-atom-30.mount
920ms systemd-journal-flush.service
883ms udisks2.service
861ms systemd-user-sessions.service
759ms dev-hugepages.mount
755ms systemd-backlight@leds:dell::kbd_backlight.service
754ms dev-mqueue.mount
626ms systemd-backlight@backlight:intel_backlight.service
618ms systemd-timesyncd.service
522ms resolvconf.service
493ms ufw.service
493ms kmod-static-nodes.service
473ms dev-loop1.device
468ms snap-core-3017.mount
461ms systemd-journald.service
430ms dev-loop2.device
425ms snap-core-2844.mount
421ms systemd-sysctl.service
388ms systemd-random-seed.service
384ms snap-atom-20.mount
376ms alsa-restore.service
317ms rc-local.service
308ms snap-core-2898.mount
299ms setvtrgb.service
250ms snap-atom-36.mount
205ms dev-loop5.device
197ms proc-sys-fs-binfmt_misc.mount
113ms systemd-remount-fs.service
57ms plymouth-read-write.service
48ms rtkit-daemon.service
45ms snapd.autoimport.service
31ms snapd.socket
13ms systemd-update-utmp-runlevel.service
6ms sys-fs-fuse-connections.mount
5ms plymouth-quit-wait.service
/etc/fstab 的输出
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=ddee4415-d44a-41bd-b1b7-978f699666ff / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=d4df51a1-e991-47ea-920b-02502d4f7226
df -h 的输出
Filesystem Size Used Avail Use% Mounted on
udev 2.9G 0 2.9G 0% /dev
tmpfs 588M 17M 571M 3% /run
/dev/sda5 338G 190G 132G 60% /
tmpfs 2.9G 23M 2.9G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup
/dev/loop3 84M 84M 0 100% /snap/core/3017
/dev/loop5 82M 82M 0 100% /snap/core/2898
/dev/loop1 172M 172M 0 100% /snap/atom/30
/dev/loop2 173M 173M 0 100% /snap/atom/36
/dev/loop4 172M 172M 0 100% /snap/atom/20
/dev/loop0 82M 82M 0 100% /snap/core/2844
tmpfs 588M 112K 588M 1% /run/user/1000
systemd-分析
Startup finished in 12.490s (kernel) + 1min 27.460s (userspace) = 1min 39.951s