You are not logged in.
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
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
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
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
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
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