Grub2 cannot bring Win 7 out of hibernation - error 0xc000009a
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Arch Linux) |
New
|
Undecided
|
Unassigned | ||
grub2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Installed Ubuntu 12.04 for dual-boot on HP P7-1222 (a UEFI machine that came with Win 7). All Ubuntu and Win 7 updates are installed, current as of 9/20/2013.
Ubuntu works well. The 'Grub2 "Windows Boot UEFI loader" selection boots Windows 7 64-bit fine, too.
Problem is: Win 7 cannot resume from hibernate.
Pre-Ubuntu I had activated Win 7 hibernation and used it successfully. I like to hibernate my Windows machines and then unplug them to protect against voltage spikes etc., but have a fast restart with retained state.
After Ubuntu was installed, if I hibernate Win 7 (which it seems to do) and the machine turns off. If I then try to resume Win 7 from hibernation, I get a "Your computer cannot come out of hibernation 0xc000009a" error from the Windows loader.
If I try to reboot Win 7 again from Grub2 I am presented with the "delete hibernation file and restart" option, which then does so and reboots Win 7 OK. Of course, searching on the 0xc000009a error code brings up little of value. (Thanks, MS, for such informative error messages.)
I've tried the "off the top of my head" attempted fixes - powercfg -h off, then powercfg -h on; defragmenting; etc. No change.
In effect, I cannot use hibernation in Win 7 anymore.
This seems to be a grub2 bug. It does not occur on a dual-boot non-UEFI Celeron 352 machine w/Ubuntu 12.04 and Win 7 (note that the old machine is unning the 32 bit version of Win 7 but the 64-bit version of Ubuntu).
I believe this is a Grub bug, but have no idea what source package the bug is in.
Can you change the bios boot order to bypass grub and go straight to the Windows loader, and see if that fixes it?