You are not logged in.

#1 2022-04-22 00:04:23

murdonk
Member
Registered: 2022-04-21
Posts: 2

[SOLVED] Hibernating to a swap partition on a separate luks container

Hello all, I have Arch installed on my small ssd with luks+lvm, but I'd like to have my swap partition for hibernation on a separate, hard disk partition, to reduce wear on the ssd. This last partition is also a luks container for lvm, unlocked on boot with crypttab with a key file on my root partition, and already contains a logical volume for bigger files like games and such. I have already created the swap logical volume on this partition, and added the appropriate hooks to mkinitcpio.conf, and of course I re-generated the initrd and grub.cfg already.

I am able to hibernate the system just fine, however, on reboot the luks container on the hdd (again, the one with the swap logical volume) isn't unlocked till _after_ the resume process and thus can't find the swap, so it can't load the "hibernated state"; it just boots normally.

Is there a way to unlock this partition before trying to resume from swap?

Last edited by murdonk (2022-04-23 16:58:53)

Offline

#2 2022-04-23 16:56:18

murdonk
Member
Registered: 2022-04-21
Posts: 2

Re: [SOLVED] Hibernating to a swap partition on a separate luks container

Offline

Board footer

Powered by FluxBB