> $ cat /sys/power/resume
> 0:0

This was a red herring.  What I have found consistently fixes this is:

$ sudo swapoff /dev/sda2
$ sudo swapon -p 1 /dev/sda2

Hibernate then succeeds.  However, this is not how I want my system
configured: I have a small swap partition on my SSD, which I would like
to be used for swap under normal operation; changing the priority to
address my hibernation issues means that I'm using my slow HDD as
regular swap.

For reference, after the above changes:

$ swapon
NAME      TYPE       SIZE USED PRIO
/dev/dm-2 partition  980M   0B   -2
/dev/sda2 partition 97.7G   0B    1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1910252

Title:
  `systemctl hibernate` incorrectly reports "Not enough swap space for
  hibernation"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1910252/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to