You are not logged in.

#1 2012-12-29 01:51:43

silentsnake
Member
Registered: 2012-02-23
Posts: 57

Encrypted swap partition throws errors on shutdown

Hi there,

I've found some error message in journalctl recently that occurred while the system was shutting down.

Dez 24 12:32:35 arch systemd[1]: Stopped (with error) /dev/mapper/swap.
Dez 24 12:32:35 arch systemd[1]: Stopped (with error) /dev/disk/by-uuid/12345678-1234-1234-1234-123456789abc.
Dez 24 12:32:35 arch systemd[1]: Stopped (with error) /dev/disk/by-id/dm-uuid-CRYPT-PLAIN-swap.
Dez 24 12:32:35 arch systemd[1]: Stopped (with error) /dev/disk/by-id/dm-name-swap.
Dez 24 12:32:35 arch systemd[1]: Stopped (with error) /dev/dm-1.
Dez 24 12:32:35 arch systemd[1]: Stopped (with error) /sys/devices/virtual/block/dm-1.

I'm using dm-crypt with luks for encrypting the partition without any special stuff like suspend-support or something.

/etc/crypttab entry

swap /dev/disk/by-partuuid/11111111-2222-2222-2222-333333333333 /dev/urandom cipher=aes-xts-plain64,size=512,hash=whirlpool,swap

/etc/fstab entry

/dev/mapper/swap    swap    swap    defaults    0    0

According to free and top, the swap partition works fine, so what is the reason for this? Any possible fix?

Thank you

Last edited by silentsnake (2012-12-29 01:52:55)

Offline

#2 2012-12-29 02:51:39

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Encrypted swap partition throws errors on shutdown

Can you look through your journal and find the error.

But ya, I agree. As long as Swap is working, I see no reason why an error in stopping it would cause any problems.

Last edited by hunterthomson (2012-12-29 02:56:57)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#3 2012-12-29 03:02:45

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,143

Re: Encrypted swap partition throws errors on shutdown

Is the shutdown hook included in mkinitcpio.conf? If not, try adding it and regenerating the initramfs.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2012-12-29 15:54:39

silentsnake
Member
Registered: 2012-02-23
Posts: 57

Re: Encrypted swap partition throws errors on shutdown

Thanks, but unfortunately adding shutdown hook didn't solve it. sad The posted journal messages are everything I found within my log. sad

Offline

Board footer

Powered by FluxBB