6
8
Moving to GRUB2 my Arch Linux no longer resumes from hibernation, because the actual resuming is no longer set up. In GRUB legacy I'd write:
/boot/grub/menu.lst:
kernel /vmlinuz26 root=/dev/disk/by-uuid/X ro resume=/dev/disk/by-uuid/Y ro
But with GRUB2's new way of handling the boot menu, I no longer know how, where and in which form to add this. My guess is you'd add the entire menuentry to /etc/grub.d/40_custom/ and somehow set up the resuming there? Manually hardcoding menuentries into GRUB2 seems to go against its flexible menu generation approach, but whatever reenables me to use hibernate is gladly welcomed.
Thanks!
I had to update initramfs
sudo update-initramfs -u -k all
– Zamicol – 2018-12-02T22:42:08.113When I boot, grub gives "error: invalid file name `resume=UUID=XX...XX'. it gives the same error using resume=/dev/sdb1. Any thoughts? – James Talbert – 2019-04-23T15:34:51.837
Glad to see you don't have to specify
resume=UUID=<uuid>
, which means I can hiberate and restore to/from my encrypted partitions. Thanks! – Robin – 2019-12-18T11:56:40.9902Thanks! Arch is now successfully back from hibernating again! – miyalys – 2012-03-29T13:28:15.173
@xlys Glad I could help. Did you wait all these months to fix it? – Bryce Guinta – 2012-03-30T00:31:05.293
1Yes, I did, and I left my computer on a lot more because of it. – miyalys – 2012-03-30T11:12:13.720