On 12/9/24 6:01 PM, Ranjan Maitra via users wrote:
On Mon Dec09'24 05:22:12PM, Samuel Sieb wrote:
From: Samuel Sieb <sam...@sieb.net>
Date: Mon, 9 Dec 2024 17:22:12 -0800
To: users@lists.fedoraproject.org
Reply-To: Community support for Fedora users <users@lists.fedoraproject.org>
Subject: Re: new F41 install: is swap partition no longer needed for
  hibernate?

On 12/8/24 5:57 PM, Ranjan Maitra via users wrote:
I have not installed Fedora on a laptop for a while, and I am pretty confused 
with how to partition the disk: I do custom partition because I want a very big 
/home, and a reasonable /

In the old past, several iterations ago, I used to create a separate swap 
partition (twice the size of RAM, though for very large RAM, I have been using 
1x or 1.5x) and use that for hibernate. But now with zram0, do we no longer 
need a swap partition? If so, how is hibernate supposed to work? There is a lot 
of discussion online: it appears that things changed around F38 and even later, 
and also I do not seem to be able to land an official fedora document regarding 
what to do. Is this something that is supposed to simply work?

Btw, in case it matters, I continue to use ext4 filesystems (except for the EFI 
partition).

Sorry I am not very clear on this. Any suggestions on how to do this?

I just tested F40 in a VM.  If you configure a swap partition at install
time, anaconda will set the resume parameter automatically.  However, I
still had to add the "resume" module to dracut to make it work.

Thanks! However, my problem is not resumption, but more than like my dog who 
was too smart to go fetch twice (if you are going to throw it away, why should 
I be expected get it back for you?), it only blinks and refuses to go down and 
hibernate from the second time after boot.

Would using

  sudo dracut -a resume -f

address this problem? I guess it is worth a try

It wouldn't. I haven't tried it with F41 yet, but I guess the resume module is already included there since hibernating doesn't give you an error and works at least once. It's hard to tell what happening there. It could be that the kernel is failing to trigger hibernation (but with no error?) or the BIOS is resuming immediately (but that also doesn't make sense because that should require a reboot).

If secure boot is enabled, you need to encrypt the swap partition, but I
haven't had a chance to test that yet.

Is there a benefit to having secure boot enabled?

It's a security thing. As long as it doesn't interfere with my use, I just leave it at the default enabled.

--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to