Fedora 41 Not Booting: Hibernation Issue
Hibernation is a power-saving state designed to save the system state to disk and shut down the computer. When you turn on the computer again, the system state is restored, and you can continue where you left off. However, sometimes, hibernation can cause issues with booting, as reported by some Fedora 41 users.
The Issue
Users have reported that their Fedora 41 laptops are getting stuck on the splash screen during boot. When they try to start in rescue mode, they see the message "waiting for device /dev/mapper/fedora\_localhost-live-swap." This issue is related to hibernation and can be resolved by disabling hibernation.
Disabling Hibernation
To disable hibernation, you need to edit the Grub configuration file. First, start in rescue mode by following these steps:
- Restart your computer and press the power button to turn it off.
- Press the power button again to turn it on, then immediately start pressing the Shift key to display the Grub menu.
- Select the "Advanced options for Fedora" menu item.
- Select the kernel version you want to use and press "e" to edit its boot parameters.
- Add "systemd.swap_management=false" to the end of the line that starts with "linux," then press Ctrl+x to boot.
Once you have successfully booted the system, you can disable hibernation permanently by following these steps:
- Open a terminal window and enter the following command:
sudo systemctl mask hibernate.target hybrid-sleep.targetThis command disables the hibernate and hybrid-sleep targets, preventing the system from entering hibernation.
Re-enabling Hibernation
If you later decide to re-enable hibernation, you can do so by reversing the steps above:
- Open a terminal window and enter the following command:
sudo systemctl unmask hibernate.target hybrid-sleep.targetReferences
- Working With Systemd-Swap
- Why does my Fedora 25 install get stuck on splash screen after resume from hibernate
By following the above steps, you can disable hibernation in Fedora 41, which should resolve the booting issue. If you need to re-enable hibernation, you can do so by reversing the steps above.