Ubuntu 18.04 启动速度超慢

Ubuntu 18.04 启动速度超慢

我目前安装了 ubuntu 18.04.02,结果发现它启动速度太慢了。我甚至没有在 Ubuntu 的双启动中安装 Windows。我的笔记本电脑规格是

8th Gen Intel Core i5-8250U
NVIDIA GEFORCE MX150 (2G GDDR5) graphics
1 TB HDD
ram-8 GB

当我跑步的时候

systemd-分析时间

我得到了这个结果

启动耗时 3.961 秒(固件)+ 4.207 秒(加载器)+ 3.699 秒(内核)+ 32.893 秒(用户空间)= 44.762 秒
用户空间中 32.876 秒后达到 graphic.target

当我跑的时候

systemd-analyze 责备

我有

9.471s apparmor.service
          8.423s dev-sda2.设备
          7.925s systemd-tmpfiles-setup.service
          7.479s NetworkManager-等待-在线.服务
          6.352s snapd.service
          5.076s 螺栓服务
          4.843s gpu-manager.service
          4.499s dev-loop4.device
          3.933s NetworkManager.服务
          3.775s dev-loop9.device
          3.764s networkd-dispatcher.service
          3.321s dev-loop0.device
          3.283s dev-loop6.device
          3.124s dev-loop8.device
          3.034s ModemManager.服务
          2.950s dev-loop7.device
          2.888s dev-loop5.device
          2.836s systemd-journal-flush.service
          2.762s dev-loop1.device
          2.656s dev-loop3.device
          2.615s dev-loop2.device
          2.611s udisks2.服务
          2.536s thermald.service
          1.904s systemd-udevd.service
          1.725s 账户守护进程.服务
          1.627s wpa_supplicant.service
          1.463s 控制台设置.服务
          1.302s 蓝牙.服务
          1.247s systemd-timesyncd.服务
          1.247s systemd-resolved.service
          1.222s grub-common.service
          1.179s plymouth-read-write.service
           993ms systemd-tmpfiles-setup-dev.service
           968ms dns-clean.service
           920ms systemd-sysctl.service
           817ms apport.service
           788ms fwupd.服务
           785ms 网络服务
           683ms pppd-dns.服务
           669ms systemd-modules-load.service
           669ms nvidia-persistenced.service
           652ms systemd-logind.service
           636ms 键盘设置服务
           591ms rsyslog.服务
           550ms systemd-fsck@dev-disk-by\x2duuid-5338\x2d4FE1.service
           548ms snap-core-6350.mount
           509ms polkit.service
           471ms snap-vlc-1049.mount
           449ms snap-gnome\x2dcharacters-139.mount
           398ms systemd-rfkill.service
           360ms systemd-fsck@dev-disk-by\x2duuid-0d52a478\x2d7fc6\x2d4ec3\x2da7
           355ms avahi-daemon.service
           318ms setvtrgb.service
           315ms upower.服务
           295ms snap-overleaf-2.mount
           279ms packagekit.service
           256ms snap-gnome\x2dcalculator-260.mount
           255ms dev-disk-by\x2duuid-c1c89474\x2d700e\x2d4066\x2d9650\x2d6bb12c1
           251毫秒[电子邮件保护]
           247ms systemd-random-seed.service
           245ms snap-gtk\x2dcommon\x2dthemes-818.mount
           243ms snap-gnome\x2dsystem\x2dmonitor-57.mount
           230ms snap-gnome\x2d3\x2d26\x2d1604-74.mount
           224ms snap-spotify-36.mount
           208ms 主页.mount
           206ms gdm.服务
           147ms systemd-remount-fs.service
           144ms systemd-journald.service
           140ms systemd-udev-trigger.service
           122ms systemd-backlight@backlight:intel_backlight.service
           101ms snapd.socket
            84ms snap-gnome\x2dlogs-45.mount
            72ms 语音调度服务
            72ms kerneloops.service
            70毫秒[电子邮件保护]
            67ms systemd-user-sessions.service
            65ms systemd-update-utmp.service
            58ms 启动-efi.mount
            53ms 系统内核调试.mount
            53ms kmod-静态节点.service
            50ms ufw.服务
            48ms colord.service
            45ms alsa-restore.service
            44ms systemd-tmpfiles-clean.service
            41ms snapd.seed.service
            39ms rtkit-daemon.service
            18ms dev-hugepages.mount
            14ms systemd-update-utmp-runlevel.service
             7ms ureadahead-stop.service
             3ms dev-mqueue.mount
             2ms plymouth-退出-等待.服务
             1ms 系统内核配置.mount
             1ms 系统文件系统保险丝连接.mount

当我跑的时候

systemd-analyze 关键链
我有

图形.目标@32.876s
└─multi-user.target @32.876s
  └─kerneloops.service @32.803s +72ms
    └─network-online.target @32.775s
      └─NetworkManager-wait-online.service @25.295s +7.479s
        └─NetworkManager.service @21.361秒 +3.933秒
          └─dbus.service @20.698s
            └─basic.target @20.683秒
              └─sockets.target @20.683秒
                └─snapd.socket @20.581秒+101毫秒
                  └─sysinit.target@20.580秒
                    └─apparmor.service @11.079秒 +9.471秒
                      └─local-fs.target @11.077秒
                        └─run-user-121.mount @27.731s
                          └─swap.target @10.422秒
                            └─开发磁盘-by\x2duuid-c1c89474\x2d700e\x2d4066\x2d96
                              └─dev-disk-by\x2duuid-c1c89474\x2d700e\x2d4066\x2d

有人能帮助我更快地启动它吗?

相关内容