You are not logged in.

#1 2018-05-25 17:42:38

karcher
Member
Registered: 2018-01-09
Posts: 140

[SOLVED] Error: resume: no device specified for hibernation.

Hi all,

I'm seeing this error during boot:
Error: resume: no device specified for hibernation.
So hibernation does not work (suspend does).

This is what I have done:

sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX="quiet resume=UUID=..."

sudo nano /etc/mkinitcpio.conf
HOOKS=(base udev autodetect keyboard modconf block filesystems resume fsck)

sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo mkinitcpio -p linux
sudo mkinitcpio -p linux-lts

As far as I have seen it should work by doing the previous steps. I don't know what I'm doing wrong. Any ideas?
(The boot folder is on a btrfs subvolume, if that matters...)

Last edited by karcher (2018-05-25 22:05:47)

Offline

#2 2018-05-25 17:51:54

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Error: resume: no device specified for hibernation.

Does the output of `cat /proc/cmdline` contain the resume option?

Offline

#3 2018-05-25 18:02:29

karcher
Member
Registered: 2018-01-09
Posts: 140

Re: [SOLVED] Error: resume: no device specified for hibernation.

Ioqs wrote:

Does the output of `cat /proc/cmdline` contain the resume option?

Indeed, it doesn't:

cat /proc/cmdline
BOOT_IMAGE=/@/boot/vmlinuz-linux root=UUID=... rw rootflags=subvol=@ quiet

How can I fix this?

Offline

#4 2018-05-25 18:17:55

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Error: resume: no device specified for hibernation.

I take it you have actually replaced the ... with the correct UUID?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2018-05-25 18:22:52

karcher
Member
Registered: 2018-01-09
Posts: 140

Re: [SOLVED] Error: resume: no device specified for hibernation.

Slithery wrote:

I take it you have actually replaced the ... with the correct UUID?

big_smile Of course...I'm not so clueless.

Offline

#6 2018-05-25 18:35:00

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Error: resume: no device specified for hibernation.

Well what was the point of obfuscating it then?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#7 2018-05-25 18:40:57

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] Error: resume: no device specified for hibernation.

Is boot on a separate filesystem?  If so was it mounted when you ran `grub-mkconfig -o /boot/grub/grub.cfg`?
If you edit the boot entry from grub itself is the resume option present?

Offline

#8 2018-05-25 22:32:58

karcher
Member
Registered: 2018-01-09
Posts: 140

Re: [SOLVED] Error: resume: no device specified for hibernation.

Slithery wrote:

Well what was the point of obfuscating it then?

Because it adds no value to the question and it's weird habit of mine.

loqs wrote:

Is boot on a separate filesystem?  If so was it mounted when you ran `grub-mkconfig -o /boot/grub/grub.cfg`?
If you edit the boot entry from grub itself is the resume option present?

Sorry, I didn't check before I write this about boot on subvolume. I thought that was the case because that was my original plan. Just checked with:

sudo  btrfs subvolume list -p /

and boot is not among the subvolumes.

Hibernation seems to be working now and I don't see the previous mentioned error anymore. The problem was that the entry I was choosing in the GRUB boot menu didn't contain the resume option. I've checked this with Grub Customizer. There are 5 entries:

1. Arch Linux, with Linux linux-lts
2. Arch Linux, with Linux linux-lts (fallback initramfs)
3. Arch Linux, with Linux linux
4. Arch Linux, with Linux linux (fallback initramfs)

plus one entry I created myself by copying the content of Arch Linux, with Linux linux after I installed Arch instead of moving the entry up. My mistake! All 4 entries contain the resume option except the last one...

Sorry guys. Thanks!

Offline

Board footer

Powered by FluxBB