[RESPONDED] Hibernate missing s2disk on ubuntu 22.04

I have Ubuntu 22.04 installed with the latest BIOS, and I think have almost got hibernate working with a swapfile, but systemctl hibernate is failing because it can’t find s2disk. This makes sense, since it turns out s2disk (from uswsusp) was removed after 20.04, but then I don’t understand why hibernate in 22.04 is still trying to use it. I wonder if anyone has run into this issue?

Hi @Duncan_Ralph ,

welcome to the framework community :slight_smile:

what does the error look like on systemd?

sudo journalctl -u systemd-hibernate.service
-- Boot 6bb8f8d45dd444cf9380b968b59b09df --
May 15 18:24:55 oubli systemd[1]: Starting Hibernate...
May 15 18:24:55 oubli run-parts[5324]: run-parts: executing /lib/systemd/system-sleep/hdparm pre
May 15 18:24:55 oubli run-parts[5324]: run-parts: executing /lib/systemd/system-sleep/unattended-upgrades pre
May 15 18:24:55 oubli systemd[5332]: systemd-hibernate.service: Failed to locate executable /usr/sbin/s2disk: No such file or directory
May 15 18:24:55 oubli systemd[5332]: systemd-hibernate.service: Failed at step EXEC spawning /usr/sbin/s2disk: No such file or directory
May 15 18:24:55 oubli systemd[1]: systemd-hibernate.service: Main process exited, code=exited, status=203/EXEC
May 15 18:24:55 oubli systemd[1]: systemd-hibernate.service: Failed with result 'exit-code'.
May 15 18:24:55 oubli systemd[1]: Failed to start Hibernate.

Hi @Duncan_Ralph ,

you mentioned you have swap file enabled, have you tried going over this instructions, and check if you may have missed something?

also have you tried this suggestion as well?

there’s an old uswsusp package here , although I doubt it will resolve you issue.

1 Like

Great, thanks, the old 20.04 uswsusp package seems to be working ok. I’ve had another read through and I don’t think I missed any steps, and I didn’t try the suggestions for alternative grub options.