我是 Linux 新手,我的操作系统虽然只需几秒钟即可启动,但总是关机非常慢,这让我很烦恼。
然后我发现磁盘管理器无法正常关闭,总是超时。我正在运行双操作系统 Ubuntu + Windows,Ubuntu 版本为 22.04.1 LTS。系统安装在 NVMe ssd 上,通过 SATA 连接两个 HDD 和一个 SSD。
以下是journalctl -rb -1
输出。udisk 因超时终止与之前最后一次关机事件之间大约有 90 秒的间隔。
user.slice: Consumed 1min 36.500s CPU time.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: Removed slice User and Session Slice.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: Stopped target Slice Units.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: Stopped Start whoopsie on modification of the /var/crash directory.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: whoopsie.path: Deactivated successfully.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: Stopped CUPS Scheduler.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: cups.path: Deactivated successfully.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: Stopped ACPI Events Check.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: acpid.path: Deactivated successfully.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: Stopped target Path Units.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: Stopped target Basic System.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: udisks2.service: Consumed 1.476s CPU time.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: Stopped Disk Manager.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: udisks2.service: Unit process 3786 (mount.ntfs) remains running after unit stopped.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: udisks2.service: Unit process 3706 (mount.ntfs) remains running after unit stopped.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: udisks2.service: Unit process 3092 (mount.ntfs) remains running after unit stopped.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: udisks2.service: Failed with result 'timeout'.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: udisks2.service: Killing process 3786 (mount.ntfs) with signal SIGKILL.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: udisks2.service: Killing process 3706 (mount.ntfs) with signal SIGKILL.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: udisks2.service: Killing process 3092 (mount.ntfs) with signal SIGKILL.
Oct 27 17:27:17 Jacky-Home-Desktop systemd[1]: udisks2.service: State 'final-sigterm' timed out. Killing.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: Stopped ACPI event daemon.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: acpid.service: Deactivated successfully.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: Unmounted /run/user/1000.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: run-user-1000.mount: Deactivated successfully.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: Stopped Userspace Out-Of-Memory (OOM) Killer.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: systemd-oomd.service: Deactivated successfully.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: Stopped target Preparation for Network.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: Stopped Network Manager.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: NetworkManager.service: Deactivated successfully.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: Stopped WPA supplicant.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: wpa_supplicant.service: Deactivated successfully.
Oct 27 17:25:48 Jacky-Home-Desktop systemd[1]: Stopped target User and Group Name Lookups.
/etc/fstab 内容
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p4 during installation
UUID=1a298bd9-06e3-4f4d-b559-cd4ca507fd88 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sdc1 during installation
UUID=000F-5C50 /boot/efi vfat umask=0077 0 1
# /home was on /dev/nvme0n1p5 during installation
UUID=6d0f9094-5a7f-4e90-bd16-19987c1799e5 /home ext4 defaults 0 2
# swap was on /dev/nvme0n1p3 during installation
UUID=ce8eaf1e-95eb-4503-8895-cafabb823830 none swap sw 0 0