You are not logged in.

#1 2025-07-02 04:44:03

LeftyAce
Member
Registered: 2012-08-18
Posts: 162

[Solved] Configure grub "default" entry to not resume hibernation

Hi all,

Can anyone point me to instructions on how to set up an option in GRUB to not attempt to resume from hibernate? (that is, to boot fresh). I don't think this note in the wiki applies since I do not have any resume related code in my /etc/default/grub.

I set up my system with a swap file. Based on the hibernate instructions, since I am using the systemd hook in my mkinitcpio.conf, I don't think I had to do anything else to enable hibernate and resume, it "just worked."

Any pointers on how to set up a fallback boot option with hibernation disabled?

Or should I not worry about it? I'm concerned about a scenario where something breaks during suspend-to-disk and I'm not able to boot cleanly because the system is trying to resume from hibernation. If that's illogical, please let me know!

Edit: Had to rephrase the subject to make it short enough to add "[Solved]"

Last edited by LeftyAce (2025-07-04 05:24:58)

Offline

#2 2025-07-02 08:42:13

cryptearth
Member
Registered: 2024-02-03
Posts: 1,553

Re: [Solved] Configure grub "default" entry to not resume hibernation

if you hibernate you need the resume flag
if something fails you can always hit E during the menu and remove it yourself and continue boot with F10/Ctrl+x

Offline

#3 2025-07-02 08:52:45

SimonJ
Member
From: Alicante, Spain
Registered: 2021-05-11
Posts: 259
Website

Re: [Solved] Configure grub "default" entry to not resume hibernation

This is not needed any more, you do not add anything to the command line

Since systemd v255 and mkinitcpio v38, when the system is running on UEFI, systemd-sleep(8) will automatically pick a suitable swap space to hibernate into, and the information of the used swap space is stored in HibernateLocation EFI variable. Upon next boot, systemd-hibernate-resume(8) reads the location off the EFI variable and the system resumes. This means the following steps are not necessary unless the system is using legacy BIOS or you want to choose a different swap space from the automatically-selected one.


Rlu: 222126

Offline

#4 2025-07-02 12:45:09

LeftyAce
Member
Registered: 2012-08-18
Posts: 162

Re: [Solved] Configure grub "default" entry to not resume hibernation

Yes, as SimonJ said, the system is successfully hibernating and resuming without any explicit resume instructions in Grub. My question is, how can I tell the system not to resume during the boot process, since there is no resume flag set?

Offline

#5 2025-07-02 13:50:15

SimonJ
Member
From: Alicante, Spain
Registered: 2021-05-11
Posts: 259
Website

Re: [Solved] Configure grub "default" entry to not resume hibernation

I just tried this and it works, at the GRUB menu, edit the command line and add noresume, the boot ignores the hibernation file and boots to a fresh desktop.The downside is it also disables hibernation for that boot.

A reboot without the edit and it is back and hibernates as normal

Last edited by SimonJ (2025-07-03 11:17:36)


Rlu: 222126

Offline

#6 2025-07-04 05:23:53

LeftyAce
Member
Registered: 2012-08-18
Posts: 162

Re: [Solved] Configure grub "default" entry to not resume hibernation

Wonderful, thanks SimonJ! That works great. It looks like there isn't a way to have it as a standard menu option in the Grub menu, but since this is really an emergency use only question, adding "noresume" to the grub commandline is perfect.

Offline

Board footer

Powered by FluxBB