[Pm-utils] hibernate and grub menu
Dan Nicholson
dbn.lists at gmail.com
Thu May 20 13:21:47 PDT 2010
On Thu, May 20, 2010 at 9:57 AM, Sebastian Gurin
<sgurin at montevideo.com.uy> wrote:
> hello all.
>
> this is a question about hibernation (save state to disk). I have opensuse 11 and windows 7 in a fujitsu siemens laptop which uses pm-utils for hibernating. Grub is used for the OS choose menu.
>
> I would like to hibernate my linux session, reboot the system and start windows. Then reboot again and load the "hibernated" linux session so I can contnue with my work without configuring, openeing and starting documents, servers, etc.
>
> Hibernating in linux works fine, with the exception that after hibernate, when I turn on the system, I can't choose which OS to boot in grub menu because grub menu is not presented, and the hibernated linux session is loaded automatically.
I have the same situation, and if I hold ESC or some key just after
the bios screen has gone away, it brings up the grub menu. That's with
grub-0.97, which may be different than what you have.
The reason it's done, though, is so you don't do a full boot and blow
away all your data in swap.
> I was looking at the scripts, I ended in /usr/lib/pm-utils/sleep.d/99Zgrub scripts but I really don't understand where this behaviour can be changed. Is the script /usr/sbin/grubonce something to do with this?
You can blacklist the hook. Something like:
echo 'HOOK_BLACKLIST="99Zgrub"' > /etc/pm/config.d/blacklist
--
Dan
More information about the Pm-utils
mailing list