Why Isn’t Hibernate Working with My Swap File on Linux?

0
7
Asked By CuriousCoder92 On

I'm having trouble getting hibernation to work on my Linux system. I've created a swap file at /swapfile, allocating 32GB of space for my 16GB of RAM, but when I try to hibernate using the command 'sudo systemctl hibernate', I get an error saying there's not enough suitable swap space available. I've made sure the UUIDs in fstab, grub, and initramfs are all correct and I've verified them using blkid. When I run 'sudo update-initramfs -u', it also warns that there is no matching swap device available. I've disabled Secure Boot and followed all the tutorials carefully. Can anyone help me figure out why hibernation isn't working?

2 Answers

Answered By DistroDabbler21 On

I recently switched to Manjaro, and it configured hibernation without any issues right out of the box. If you're experimenting with Linux, it might be worth considering other distros in the future if hibernation is a key feature for you.

CuriousCoder92 -

Thanks for the input! I'm actually trying to focus on Ubuntu for now since I'm still learning programming and want to stick with one distro for a while.

Answered By LinuxLover54 On

Have you checked if SNAP is still installed on your system? I had a similar issue with hibernation not working because SNAP processes were running in the background. Once I removed SNAP, hibernation started working perfectly again.

CuriousCoder92 -

Yes, SNAP is currently installed on my machine. Could you explain how you removed it?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.