Grub shows error: no device specified for hibernation

Hi, so I somehow encountered a issue with the grub command line I had to paste. Whenever I boot or shut down the system it would say ERROR: resume :no device specified for hibernation, I don’t remember the exact error, but it was similar to this. You know whenever Arch boots up and then shuts down a bunch of code pops up. Yeah this error shows up and I don’t know how to fix it, I could remove the line I did to fix the suspension issue, but if I can I’d rather to just fix it.

Also the system actually boots, but I think its actually slowing the boot time and it looks weird. Hibernation does not work too, when I try hibernating the system shuts down completely as if there was a power cut.

If you don’t know then I guess its fine.

Please post:

cat /etc/fstab

cat /etc/default/grub

cat /proc/cmdline

I actually found the exact error earlier just forgot to update the post, but here are the logs u wanted




1 Like

I have moved the topic into a separate thread, please don’t post several topics in a solved thread.

Do you use hibernation?

If you don’t, you could remove



GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=f13268f2-7920-4ce1-866f-b5ecc36ddb5b loglevel=3 nowatchdog nvme_load=YES"



and run

sudo grub-mkconfig -o /boot/grub/grub.cfg


1 Like

So I would change it to GRUB_CMDLINE_LINUX_DEFAULT=


And no I don’t just the error bugs me out, I’m fine with not using hibernation

Change it to

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 nowatchdog nvme_load=YES"

and run the grub update command given above.

That for some reason didn’t work too, I updated grub and rebooted to see if the error showed up and it showed it.

1 Like

Well … I am stumped and start running out of ideas.

Perhaps some other forum members could have a look at this with fresh eyes.

Just some more info to post:

cat /boot/grub/grub.cfg

and perhaps again:

cat /proc/cmdline.

This line in /etc/default/grub which is GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=! acpi_osi='Windows 2009' quiet splash" is causing it(I know it because I commented it and then updated grub then rebooted the issue is no more. Though if I removed suspending would lock Wi-Fi. Thanks for trying to fix the weird error.

1 Like

There is a lot of misunderstanding in this issue.
Let’s try to clear it up a little… :stuck_out_tongue_winking_eye:

This means you ask grub to restore from a hibernation disk/swap, but did not provide an address in grub configuration (resume=UUID...)

The message is produced only once, during boot. On shutdown, you just see the same message in TTY, when DE session exits and DM is not present (late, or skipped).

When a configuration file (/etc/default/grub) is sourced and a parameter is assigned a value more than once, the last assignement is taken as the value.
In the posted file:

GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=f13268f2-7920-4ce1-866f-b5ecc36ddb5b loglevel=3 nowatchdog nvme_load=YES"

#Patch for wireless network after waking up from suspension.
GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=! acpi_osi='Windows 2009' quiet splash"

This explains the actual cmdline in proc

...root=UUID=<UUID> rw acpi_osi=! "acpi_osi=Windows 2009" quiet splash

If you want to disable hibernation, you need to remove resume hook from mkinitcpio.conf.

:smiling_face: :sunglasses:


Oh that explains a lot. Though do you mind telling me what you mean by removing resume from the mkinitcpio.conf, I’m not advanced with linux yet. Should I also revert the change the other person told me to do?

Do I know him and what he told you to do? How can I answer if I am no psychic? My Magic Crystal Ball is still away for the Annual Overhaul for at least one more month. :crystal_ball:

Also, your current situation is kind of changed after you did some fixing, so describe the new status and provide the same info as before.

For some background, see:

1 Like

Sorry thought you read the whole post, so the issue was that whenever I wake up from suspension airplane mode was on and I could never turn it off. I pasted a line which is GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=! acpi_osi='Windows 2009' quiet splash" in /etc/default/grub. That fixed the suspension issue, but that caused a weird error whenever I booted my system up which is ERROR: no device specified for hibernation, and trying to hibernate would crash my system. I’m fine with not hibernating, but seeing that error whenever I boot my system really annoys me and I feel like it slows the booting process. And now were here and the person who was helping me told me to remove resume=UUID=f13268f2-7920-4ce1-866f-b5ecc36ddb5b from the line GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=f13268f2-7920-4ce1-866f-b5ecc36ddb5b loglevel=3 nowatchdog nvme_load=YES" in /etc/default/grub. That didn’t work though as the error pursues whenever I boot my system.

Anyways here are some extra information to help maybe.



By the way, “the person” has a name: @pebcak :wink: :sweat_smile:
The eternal scapegoat!


Haha, probably should have mentioned your username though.

1 Like

I don’t think the askubuntu answer told you to add a second GRUB_CMDLINE_LINUX_DEFAULT= line in grub configuration file.
You need to use only one of them (I thought that you would have understood, since I clearly posted this in my previous post).
Not a second line!!!
Not a second line!!!
Not a second line!!!


Great catch!
I totally missed that!

A second line!!!


1 Like

Oddly enough, the line in grub.cfg seems correct:

linux /boot/vmlinuz-linux-xanmod-anbox root=UUID=871bbdc4-e5ca-4b84-b75b-da2b12067cce rw acpi_osi=! acpi_osi='Windows 2009' quiet splash


cat /proc/cmdline

BOOT_IMAGE=/boot/vmlinuz-linux-xanmod-anbox root=UUID=871bbdc4-e5ca-4b84-b75b-da2b12067cce rw acpi_osi=! "acpi_osi=Windows 2009" quiet splash