최대 절전 모드 후에 시스템이 후크를 재개할 수 없습니다.
cat /etc/mkinitcpio.conf | grep resume
HOOKS="base udev autodetect modconf block resume filesystems keyboard fsck"
그럼 내가 그랬어
mkinitcpio -p linux
커널 매개변수에 복구 매개변수를 추가했습니다.
$ cat /boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=PARTUUID=07b10be9-f06a-4501-9259-00f1d1bc1157 resume=/dev/sda6 rw
나는 또한 성공하지 못한 채 UUID를 사용해 보았습니다.
Journalctl -b에서 시스템을 시작한 후
PM: Starting manual resume from disk
Jul 27 21:45:56 LIKAN-PC kernel: PM: Hibernation image partition 8:6 present
Jul 27 21:45:56 LIKAN-PC kernel: PM: Looking for hibernation image.
Jul 27 21:45:56 LIKAN-PC kernel: PM: Image not found (code -22)
Jul 27 21:45:56 LIKAN-PC kernel: PM: Hibernation image not present or could not be loaded.
최대 절전 모드 프로세스가 너무 오래(약 5분) 지속되었기 때문에 최대 절전 모드 이미지를 스왑 파티션에 쓰는 데 문제가 있을 것이라고 가정했습니다. Journalctl -b 1을 살펴보면 스왑 파티션에서 몇 가지 문제를 발견했습니다.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped Apply Kernel Variables.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Removed slice system-dhcpcd.slice.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Unmounting /boot...
Jun 16 20:24:48 LIKAN-PC systemd[1]: Removed slice User and Session Slice.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped target Emergency Mode.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopping Emergency Shell...
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped target Timers.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped target Sockets.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped Emergency Shell.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped Load/Save Screen Backlight Brightness of backlight:acpi_video1.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped Load/Save Random Seed.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped Load/Save Screen Backlight Brightness of backlight:acpi_video0.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Unmounted Temporary Directory.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped target Swap.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Deactivating swap /dev/disk/by-id/ata-TOSHIBA_MK7575GSX_Z29FP24ST-part6...
Jun 16 20:24:48 LIKAN-PC systemd[1]: Deactivating swap /dev/sda6...
Jun 16 20:24:48 LIKAN-PC systemd[1]: Removed slice system-systemd\x2dbacklight.slice.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped Update UTMP about System Boot/Shutdown.
Jun 16 20:24:48 LIKAN-PC swapoff[420]: swapoff: /dev/disk/by-uuid/35193a16-2f67-4153-b75a-a38836d92b8d: swapoff failed: Invalid argument
Jun 16 20:24:48 LIKAN-PC systemd[1]: dev-disk-by\x2duuid-35193a16\x2d2f67\x2d4153\x2db75a\x2da38836d92b8d.swap: Swap process exited, code=exited status=255
Jun 16 20:24:48 LIKAN-PC systemd[1]: Deactivated swap /dev/disk/by-uuid/35193a16-2f67-4153-b75a-a38836d92b8d.
Jun 16 20:24:48 LIKAN-PC systemd[1]: dev-disk-by\x2duuid-35193a16\x2d2f67\x2d4153\x2db75a\x2da38836d92b8d.swap: Unit entered failed state.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Deactivated swap /dev/disk/by-path/pci-0000:00:1f.2-ata-1-part6.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Deactivated swap /dev/disk/by-partuuid/9db227e2-7d8d-4427-9277-054ac914ac05.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Deactivated swap /dev/disk/by-id/wwn-0x5000039472882700-part6.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Deactivated swap /dev/disk/by-id/ata-TOSHIBA_MK7575GSX_Z29FP24ST-part6.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Deactivated swap /dev/sda6.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Unmounted /boot.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Reached target Unmount All Filesystems.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped target Local File Systems (Pre).
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped Create Static Device Nodes in /dev.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped Create System Users.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Stopped Remount Root and Kernel File Systems.
Jun 16 20:24:48 LIKAN-PC mkinitcpio[404]: ==> Starting build: none
Jun 16 20:24:48 LIKAN-PC mkinitcpio[404]: -> Running build hook: [sd-shutdown]
Jun 16 20:24:48 LIKAN-PC mkinitcpio[404]: ==> Build complete.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Started Generate shutdown-ramfs.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Reached target Shutdown.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Reached target Final Step.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Starting Reboot...
Jun 16 20:24:48 LIKAN-PC systemd[1]: Shutting down.
Jun 16 20:24:48 LIKAN-PC systemd[1]: Hardware watchdog 'iTCO_wdt', version 0
Jun 16 20:24:48 LIKAN-PC systemd[1]: Set hardware watchdog to 10min.
Jun 16 20:24:48 LIKAN-PC kernel: watchdog: watchdog0: watchdog did not stop!
Jun 16 20:24:48 LIKAN-PC systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Jun 16 20:24:48 LIKAN-PC systemd-journald[232]: Journal stopped
lines 933-986/986 (END)
전체 로그 ctl -b 1 http://pastebin.com/uL6Fdwsv