Skip to contentSkip to conversation

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

DISCUSSION Toralf Förster 2 participants 3 messages Apr 22, 2012 – Apr 24, 2012

lore
Share & tools
lore
#0 lore raw

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.

and the system continues with normal boot. In addition there's a message from swapon, that a suspend data signature was found and that is is overwritten with the swap signature.

:-(

Signature · 3 lines
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
#1 lore raw
Quoted 8 lines · Toralf Förster

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

#2 lore raw

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

Michael Tokarev wrote at 19:07:45

Quoted 6 lines · Toralf Förster
Quoted 5 lines

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 :

Quoted 8 lines
Quoted 4 lines

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 :-(

Signature · 3 lines
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3