Hibernation suppress in GRUB2/resume

Some time ago (https://forums.opensuse.org/english/get-technical-help-here/install-boot-login/487615-grub2-configuration-problems-opensuse-12-3-installation.html) I wrote here about erroneous (by my opinion) settings of GRUB2 parameters, generated by YaST2 at OpenSuSE 12.3 installation process.

YaST2 generates GRUB2 parameters w/resume settings having reference to swap partition (-part1 for my case) and this setting remains (in installed 12.3) even when I changed (at installation stage) GRUB2 resume statement setting to right value (-part2, right value which corresponds to “/” partition of my HDD).

I beleive that it’s installation/YaST2 error - because I don’t want to have Linux hibernation. Moreover, my swap partition size is small (lower than RAM size) and can’t contains full hibernation image.

Therefore I’ll change /etc/default/grub (as also /etc/sysconfig/bootloader) files (from -part1 to -part2 in resume values) to generate right for me /boot/grub2/grub.cfg in installed 12.3.

But the question is:
If my -resume statement for kernel points not to swap, but to HDD partition w/root ("/") filesystem and linux kernel, does it means that there is now no hibernation “at all” ?

On 2013-06-25 18:16, mikky m wrote:

> But the question is:
> If my -resume statement for kernel points not to swap, but to HDD
> partition w/root ("/") filesystem and linux kernel, does it means that
> there is now no hibernation “at all” ?

You can not hibernate using “/”, it has to be swap.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

You should hope it means that.

Hibernation amounts to dumping memory to disk, and later reloading memory on resume. If memory is crudely dumped to your root partition, that would wipe your system out. The swap partition is appropriate for hibernation; the root partition is not.

Does resume parameter (which points to root filesystem partition (-part2) for hibernation suppress) replace root=/dev/sda2, or I should also add root=/dev/sda2 to list of kernel parameters ?

On 2013-06-27 18:26, mikky m wrote:
>
> Does resume parameter (which points to root filesystem partition
> (-part2) for hibernation suppress) replace root=/dev/sda2, or I should
> also add root=/dev/sda2 to list of kernel parameters ?

I repeat:

You can not set the resume parameter to the root partition. You
absolutely need to point it to a valid swap partition, or nowhere.

The root parameter has to point to the root partition.

Both are different parameters and point to different partitions.

Don’t play with those unless you know what you are doing, or your system
will not boot. You can even destroy it.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Thanks !
I changed this GRUB2/kernels parameters pair days ago.
Boot works successfully.
Mikhail
PS. Rescue CD was nearby :slight_smile:

And it hibernates??

Hope that no :slight_smile: I don’t know how to check it.
Today I changed some kernel parameters (via grub2 conf files) and use now “noresume” instead of
resume statement which points to / partition.

On 2013-07-03 20:06, mikky m wrote:
>
> gogalthorp;2568142 Wrote:
>> And it hibernates??
>
> Hope that no :slight_smile: I don’t know how to check it.
> Today I changed some kernel parameters (via grub2 conf files) and use
> now “noresume” instead of
> resume statement which points to / partition.

Your system might self-destruct if you attempted an hibernation.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

He should be safe, now that he has switched to “noresume”.

On 2013-07-04 06:26, nrickert wrote:
>
> robin_listas;2569289 Wrote:
>> Your system might self-destruct if you attempted an hibernation.
>
> He should be safe, now that he has switched to “noresume”.

Now yes, but not before. We told him several times, he did not listen.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)