看到弹出的窗口显示
磁盘空间不足 | 卷“文件系统根目录”仅剩余 X MB 磁盘空间。
我们可以在哪里找到记录此磁盘空间不足警告的日志文件?
如果默认不记录,我们如何记录它以便我们可以记录下一些细节,比如该事件的时间戳?
输出cat /var/log/syslog | grep -i disk
:
Sep 5 09:10:11 foo systemd[1]: dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device: Job dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device/start timed out.
Sep 5 09:10:11 foo systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device.
Sep 5 09:10:11 foo systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/4d64b496-3e08-497f-9e51-40db25c7710b.
Sep 5 09:10:11 foo systemd[1]: systemd-fsck@dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.service: Job systemd-fsck@dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.service/start failed with result 'dependency'.
Sep 5 09:10:11 foo systemd[1]: dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device: Job dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device/start failed with result 'timeout'.
Sep 5 09:34:55 foo systemd[1]: dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device: Job dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device/start timed out.
Sep 5 09:34:55 foo systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device.
Sep 5 09:34:55 foo systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/4d64b496-3e08-497f-9e51-40db25c7710b.
Sep 5 09:34:55 foo systemd[1]: systemd-fsck@dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.service: Job systemd-fsck@dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.service/start failed with result 'dependency'.
Sep 5 09:34:55 foo systemd[1]: dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device: Job dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device/start failed with result 'timeout'.
Sep 5 10:03:12 foo systemd[1]: dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device: Job dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device/start timed out.
Sep 5 10:03:12 foo systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device.
Sep 5 10:03:12 foo systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/4d64b496-3e08-497f-9e51-40db25c7710b.
Sep 5 10:03:12 foo systemd[1]: systemd-fsck@dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.service: Job systemd-fsck@dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.service/start failed with result 'dependency'.
Sep 5 10:03:12 foo systemd[1]: dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device: Job dev-disk-by\x2duuid-4d64b496\x2d3e08\x2d497f\x2d9e51\x2d40db25c7710b.device/start failed with result 'timeout'.
答案1
此对话框生成通过桌面设置守护进程。根据不同的风格,列表包括:
cinnamon-settings-daemon
gnome-settings-daemon
mate-settings-daemon
(根据你的评论,你的情况)ukui-settings-daemon
对于 MATE 日志监控显示,此低空间警告未记录。您可以使用 MATE 磁盘使用情况分析器 ( mate-disk-usage-analyzer
) 或通过 CLI - 使用检查空间分布ncdu
。然后,您可以移动/删除主目录中的大文件。
清理旧内核、内核头和包缓存可能会有用 - 尝试以下命令:
sudo apt-get clean
sudo apt-get autoremove --purge