Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I managed to get the 'hibernate' package to work on 2 desktops but one of them pauses during reboot with messages:
"resume: cannot stat resume device file. Please type in the name to try again or press ENTER to boot the system"
The problem is that the swap partition containing the image is on an external USB drive which is not fully initialized at the point the resume script / module is running. Immediately following the message
the drive comes online and I am able to either press ENTER to boot or enter '/dev/sda1' to cause the system to read the image file and come out of hibernation.
The other machine has the swap partition on the same drive as the root partition so the problem doesn't happen there.
I guess I need to find the code that issues the message and see if there is a way to tweak it so that it delays for a couple of seconds
to allow the drive to come online. I've seen some references to
those types of delays in the '/usr/share/initramfs-tools' but they reference the root device, not the resume device.
If anyone can point me in the direction of where I should look for this code I'd appreciate it. Thanks in advance.