![由于 systemd 临时文件创建,ubuntu 启动时启动过程缓慢](https://linux22.com/image/177166/%E7%94%B1%E4%BA%8E%20systemd%20%E4%B8%B4%E6%97%B6%E6%96%87%E4%BB%B6%E5%88%9B%E5%BB%BA%EF%BC%8Cubuntu%20%E5%90%AF%E5%8A%A8%E6%97%B6%E5%90%AF%E5%8A%A8%E8%BF%87%E7%A8%8B%E7%BC%93%E6%85%A2.png)
我在戴尔笔记本电脑上运行 ubuntu 16.04;我只是喜欢这样一个事实,即您可以在 16.04 中将工作区设置为网格格式,这与 18.04 不同,它看起来像一条线,但不确定 20 是否确实具有网格工作区设置。 CPU:Intel Core i5-i7 RAM:8GB 存储:512GB PCIe SSD。
当我启动 ubuntu 时,我收到一条消息:
A job is running for creating volatile and temporary files and directories
此过程需要一段时间才能完成,以便 ubuntu 最终启动,如下所示:
systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.
graphical.target @2min 25.315s
└─multi-user.target @2min 25.315s
└─hddtemp.service @2min 25.291s +22ms
└─network-online.target @2min 25.290s
└─NetworkManager-wait-online.service @2min 15.008s +10.280s
└─NetworkManager.service @2min 12.427s +2.568s
└─dbus.service @2min 12.223s
└─basic.target @2min 12.168s
└─sockets.target @2min 12.166s
└─snapd.socket @2min 12.124s +39ms
└─sysinit.target @2min 12.103s
└─systemd-update-utmp.service @2min 12.063s +38ms
└─systemd-tmpfiles-setup.service @5.904s +2min 6.076s
└─local-fs.target @5.897s
└─local-fs-pre.target @5.705s
└─systemd-tmpfiles-setup-dev.service @4.067s +1.635s
└─kmod-static-nodes.service @3.861s +202ms
└─systemd-journald.socket @3.485s
└─-.slice @2.994s
systemd-tmpfiles-setup.service
启动时占用过多时间的原因可能是什么?