Wednesday, January 11, 2017

Laptop Hibernation

I enabled hibernation on my laptop where I am using LUKS + LVM on Fedora 25.

  1. Edit /etc/default/grub to add resume=swapdevice to GRUB_CMDLINE_LINUX (my device was /dev/fedora/swap since "fedora" is my volume group and "swap" is my logical volume for swap).
  2. sudo dracut -f
While I did install the hibernate status button extension, I was also able to test things out with 'sudo systemctl hibernate'. The laptop went into hibernation and I was able to boot back up picking up where I left off.

And the nice thing, my swap is on the encrypted volume so my save image is therefore encrypted as well.

No comments:

Post a Comment