Re: hibernate a system booted from external USB drive - is it posible?

From: Michael Tokarev
Date: Sun Apr 22 2012 - 13:08:10 EST


On 22.04.2012 20:49, Toralf FÃrster wrote:
> I wonder, whether it is expect to work with current stable kernel 3.3.2 or
> not. Seems not to work here (s2ram works fine).
> Hibernate however writes data to the swap partition, but during wakeup I get :
>
> kernel: PM: Hibernation image partition 8:6 present
> kernel: PM: Looking for hibernation image.
> kernel: PM: Image not found (code -22)
> kernel: PM: Hibernation image not present or could not be loaded.

This is entirely an initramfs issue/question. The device should be
present in early userspace when it attempts to resume. Also, s2ram &Co
may not be prepared for changing device name/node.

I've a system with only one "drive" being an usb flash stick (Sandisk
Cruzer Fit). This system is able to hibernate and resume just fine,
but I don't do it often (it is our router).

/mjt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/