Ubuntu 16.10 或 17.04 关机时报告 5 个“失败”错误

Ubuntu 16.10 或 17.04 关机时报告 5 个“失败”错误

我不确定这是否表示存在严重错误。关闭时,我看到 5 行“FAILED”因错误而停止

[FAILED] Stopped (with error) /dev/dm-0.
[FAILED] Stopped (with error) /dev/disk/by-id/dm-uuid-CRYPT-PLAIN-cryptswmp1
[FAILED] Stopped (with error) /dev/disk/by-id/dm-name-cryptswmp1
[FAILED] Stopped (with error) /dev/disk/by-uuid/99c89684-2f0d-4a87-b7d2-696b4fa6ed09
[FAILED] Stopped (with error) /sys/devices/virtual/block/dm-0

答案1

这是 systemd 中的一个错误,这是我的解决方法。

root@x360:~# cat /lib/systemd/system-shutdown/fix-shutdown-errors.sh
/bin/bash #!/bin/bash
/sbin/swapoff -a
/sbin/cryptsetup luks关闭 mmc_crypt
/sbin/cryptsetup luks关闭 sda5_crypt

相关内容