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

From: Toralf FÃrster
Date: Tue Apr 24 2012 - 12:43:08 EST



Michael Tokarev wrote at 19:07:45
> 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.
>
Yes - that its. I do not have an initrd, just buikding linux kernel from git :

$> make -j 3 && sudo su -c "mount /boot/; make modules_install && cp arch/i386/boot/bzImage /boot/linux-git"

which works well for a cold start, but during wakeup I get :

...
PM: Checking hibernation image partition /dev/sdb2
...
then the internal sda are recognized
...
PM: Hibernation image not present or could not be loaded.
Waiting 15sec before mounting root device...
...
now the USB devices are recognized>


- too late for me :-(

--
MfG/Sincerely
Toralf FÃrster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
--
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/