I’ve been having some trouble getting hibernation to work on manjaro. I’ve recently also encrypted my whole device that adds a whole level more complication.
However, I am finding that there are issues in configuring the kernel parameters. I can set up the parameters just fine, but every time I go to restart the device there’s an error with no resume device specified. Checking the kernel params I see this:
Is there a way to keep the kernel params consistent? And does the fact I have the swapfile on my LUKS encrypted root partition make things any different?
the resume=... is the encrypted partition which contains the swap file
the resume_offset=... is the physical location on disk -
the wiki explains how to find that value that needs to be there
it is different for each one of us
Thanks I’ve edited what I can, the only piece of information I can’t get hold of now is the cryptdevice UUID. I’ve noticed these differ depending on whether the LUKS device is locked or unlocked. Judging by the differing UUID entries here:
GRUB_CMDLINE_LINUX_DEFAULT="... resume=/dev/disk/by-uuid/57ce341b-6aae-4fb0-a607-1a5d5967c7a2 resume_offset=220889088"
and
GRUB_CMDLINE_LINUX="cryptdevice=UUID=73213ab9-5c8c-4c2a-a397-aa321ebfd4ec:cryptroot nowatchdog ro"
I’d assume the second UUID specifies the encrypted drive. The only way I know how to get hold of this is by booting through a live usb and inspecting the encrypted root partition. Would you know of an easier way to access it?
sda2 is the container - what you are looking for - the cryptdevice
it contains the “cryptroot” - the name by which I refer to the encrypted ext4 filesystem it contains
there are the two numbers you need
It has been some time since I set this up, but:
in /etc/default/grub
GRUB_CMDLINE_LINUX=
or
GRUB_CMDLINE_LINUX_DEFAULT=
should already contain this.
You do have an encrypted system, do you not?
I did not use Calamares to create this setup.
It is, as you see, an encrypted / and an unencrypted /boot
Manjaro (the Calamares installer) encrypts the whole /
with no option of having /boot unencrypted.