Re: new F41 install: is swap partition no longer needed for hibernate?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon Dec09'24 06:56:08PM, Samuel Sieb wrote:
> From: Samuel Sieb <samuel@xxxxxxxx>
> Date: Mon, 9 Dec 2024 18:56:08 -0800
> To: users@xxxxxxxxxxxxxxxxxxxxxxx
> Reply-To: Community support for Fedora users <users@xxxxxxxxxxxxxxxxxxxxxxx>
> Subject: Re: new F41 install: is swap partition no longer needed for
>  hibernate?
>
> 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 <samuel@xxxxxxxx>
> > > Date: Mon, 9 Dec 2024 17:22:12 -0800
> > > To: users@xxxxxxxxxxxxxxxxxxxxxxx
> > > Reply-To: Community support for Fedora users <users@xxxxxxxxxxxxxxxxxxxxxxx>
> > > 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.

Got it, but what are the risks that I run by disabling it?

Thanks,
Ranjan

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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux