Ubuntu 18.04 启动时间非常慢(用户空间占用大量时间)

Dhr*_*rma 5 partitioning boot dual-boot

我有双启动 Ubuntu 和 Windows 10。我有 SSD+HDD 组合,其中 Windows 安装在 SSD 上,Ubuntu 安装在 HDD 上。

我尝试过重新安装 Ubuntu,但启动时间过长的问题仍然存在

linux系统在命令上计算出的启动时间systemd-analyze time如下:

启动在 6.208 秒(内核)+ 1 分钟 21.627 秒(用户空间)= 1 分钟 27.835 秒内完成。图形化。在用户空间 1 分钟 18.951 秒后达到目标

在了解不同进程所花费的时间时,systemd-analyze blame 它会打印:

34.239s dev-sda3.device
         26.287s plymouth-quit-wait.service
         22.271s systemd-journal-flush.service
         14.668s systemd-udevd.service
         14.500s plymouth-start.service
         13.720s snap-gnome\x2d3\x2d26\x2d1604-70.mount
         13.240s snap-gtk\x2dcommon\x2dthemes-319.mount
         12.755s snap-gnome\x2dsystem\x2dmonitor-51.mount
         10.934s snap-gnome\x2dcharacters-103.mount
         10.220s snapd.service
          9.661s snap-core-4917.mount
          7.689s NetworkManager-wait-online.service
          7.167s udisks2.service
          7.020s NetworkManager.service
          6.830s ModemManager.service
          6.778s accounts-daemon.service
          5.207s bolt.service
          5.128s networking.service
          4.559s networkd-dispatcher.service
          4.173s rsyslog.service
          3.921s systemd-tmpfiles-setup-dev.service
          3.750s thermald.service
          3.510s polkit.service
lines 1-23
Run Code Online (Sandbox Code Playgroud)

请帮忙!

小智 1

您是否使用任何类型的系统可以将 3D 合成器用作主显示服务器,例如 Wayland 或类似的系统?

因为plymouth-quit-wait.service看起来需要很多时间。如果是这种情况,请尝试禁用 Wayland,然后尝试打印systemd-analyze blame结果。

/etc/gdm3/custom.conf您可以通过删除#此行开头的来禁用它#WaylandEnable=false