You are not logged in.

#1 2010-03-20 00:55:10

fax8
Member
From: Italy
Registered: 2006-03-14
Posts: 104
Website

grub-mkconfig unable to add resume (for hibernation)

Hi guys,

After the upgrading issues of Grub 1.98 I started using grub-mkconfig to generate my grub.cfg file.

Everything seems to work great but it seems that grub-mkconfig can't add the resume=/dev/sdaX configuration for enabling hibernation and resuming.

How can I force grub-mkconfig to add that setting?
(yes, I do know that I can manually edit grub.cfg but ideally one wouldn't require to do so and just relying on grub-mkconfig looks to me like a cleaner solution for further updates to system - more OS, kernels, etc..)


Thanks for your time,

Fabio Varesano

Offline

#2 2010-03-20 15:50:26

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: grub-mkconfig unable to add resume (for hibernation)

in /etc/grub.d/10_linux add the line:

GRUB_CMDLINE_LINUX="resume=/dev/sdaX"

before the (line 105 I think):

 while [ "x$list" != "x" ] ; do

Not sure how to make it auto-detect the swap yet, but that should do it. Mine is currently:

GRUB_CMDLINE_LINUX="splash acpi_osi=Linux 5"

After grug-mkconfig double check the line is right.

Offline

#3 2010-03-20 16:56:14

fax8
Member
From: Italy
Registered: 2006-03-14
Posts: 104
Website

Re: grub-mkconfig unable to add resume (for hibernation)

Thanks for your suggestion.

Anyway I don't think that the correct place to set the GRUB_CMDLINE_LINUX is /etc/grub.d/10_linux.
That variable should be set in /etc/default/grub.

Offline

Board footer

Powered by FluxBB