On Sat, 2023-07-08 at 20:45 -0700, Samuel Sieb wrote:
> On 7/8/23 07:38, Doug Herr wrote:
> > On Sat, Jul 8, 2023, at 5:11 AM, Patrick O'Callaghan wrote:
> > > I'm experimenting with hibernating rather than suspending my
> > > system
> > > overnight. However I get this:
> > > 
> > > $ sudo systemctl hibernate
> > > Call to Hibernate failed: Not enough swap space for hibernation
> > > 
> > > But:
> > > 
> > > $ free -h
> > >                 total        used        free      shared 
> > > buff/cache   available
> > > Mem:            15Gi       4.6Gi       3.4Gi        80Mi      
> > > 7.5Gi        10Gi
> > > Swap:           71Gi          0B        71Gi
> > > $ swapon
> > > NAME           TYPE      SIZE USED PRIO
> > > /SWAP/swapfile file       64G   0B   -2
> > > /dev/zram0     partition   8G   0B  100
> > > 
> > > So it appears that I should have enough swap. What's going on?
> > 
> > If I remember right (and it has not changed) then you need an
> > actual swap partition and not just a "swapfile".
> > 
> > I think the partition will also need to be listed in the Grub boot
> > line also.
> 
> A swap file can work, but it needs special setup in the boot command 
> line so the kernel can find it.  You might be able to find a previous
> thread about that if you search the mailing list archives.

I found this handy guide:

https://fedoramagazine.org/hibernation-in-fedora-36-workstation/

It does require some fiddling around to work out the swapfile's
physical offset on the drive, but I'm going to try it.

poc
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to