Comment 25 for bug 350491

Revision history for this message
Jeremy Nickurak (nickurak) wrote :

@Michael When a machine is hibernated, that swap partition can't be touched, or we lose everything. That can easily happen when the swap partition is used by another Linux. And http://www.faqs.org/docs/Linux-mini/Swap-Space.html describes a method to share the same swap with Windows and Linux, suggesting even booting Windows might not be reliable.

My suggestion is to treat hibernate as a suspend. Attempting to do anything other than resume the currently running kernel is a bad idea, and should be strongly cautioned against as a potential cause of data loss, especially where the machine hibernated automatically as a result of power loss.

BTW, upstream pm-utils says this is the distribution's responsibility to handle.

I'll reopen the pm-utils task. Disabling hibernate still results in data loss when the system is set up to hibernate in response to a failure in power or battery. Strictly speaking, the fix presented here solves the immediate problem, but it'll have to be undone to solve the other problem. If you really want, I'll open a separate task for it though.