You are not logged in.
Hey there,
i decided to install arch from ground up to get rid of the unnecesary (for me) extra layer lvm.
the partitions are encrypted and root gets decrypted on start with a password, the rest than mounts with a keyfile.
the swap partition also mounts with fstab and crypttab and the keyfile.
unfortunately i cant get it installed in the boot-parameters for use of hibernation.
this is my arch.conf in /boot/loader/entries:
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options cryptdevice=/dev/sdb2:main root=/dev/mapper/main resume=/dev/crypt-swap rw quiet splash
i also tried /dev/dm-1 (swapon --summary showed this)
the HOOKS are this:
HOOKS=(base udev plymouth autodetect modconf block keymap plymouth-encrypt keyboard resume filesystems fsck)
i believe the problem is, that the encrypted swap-partition is not yet decrypted and mapped when the boot-process wants to access it.
any ideas what to try?
Last edited by sil_el_mot (2019-09-15 17:43:12)
Offline
Try swapping the places for "resume" and "filesystems". I am pretty sure the order is wrong.
Offline
oh yeah, forgot to say, i tried this also .
but thanks
Offline
Yes, I didn't read either. :-)
What you need is an initcpio hook for this to work. With LVM it is easier, but since you want to get rid of it:
https://wiki.archlinux.org/index.php/Dm … tcpio_hook
Edit: Be aware of this big disclaimer: https://www.kernel.org/doc/Documentatio … swsusp.txt
Last edited by Swiggles (2019-09-14 21:58:39)
Offline
Thanks for the point to the right wiki entry. that helps with my problems.
But now i am afraid of this disclaimer... just thinking about, if i need a working hibernation .... hmmm...
yeah, but thanks
Offline
Sounds like LVM might have been necessary after all.. ;-)
Maybe another option that is not described in the wiki (yet). You could extract a decryption key by using a TPM device if your machine has one.
Offline
Yeah . i got rid of lvm because i thought i don't need it. and it always slowed down my boot-time. now the biggest slowdown are the encrypted devices. 2tb encrypted takes 4.7sec. seems like i have to live with it
i have a tpm but i checked for it and this seems to complicated in the moment. and as i understand windows also uses it and for dual-booting reasons this would be another problem, i think
Offline
I was looking around a bit and it looks like this does not apply to swap files on your root partition. By setting your root with a given offset you should be able to resume from it. You can find this in the wiki.
The regular swap partition could be setup with a random key and discarded at each reboot. Set proper priorities and you should be good to go. Or remove it if you don't need swap for anything but suspend.
Offline
Thanks a lot. Works great now!
Offline