[Bug 1229886] Re: Grub2 cannot bring Win 7 out of hibernation - error 0xc000009a
S Silverstein
scotsilv at aol.com
Thu Sep 26 14:11:23 UTC 2013
My /boot/grub/grub.cfg is:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
}
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.2.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
linux /boot/vmlinuz-3.2.0-53-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-53-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
echo 'Loading Linux 3.2.0-53-generic ...'
linux /boot/vmlinuz-3.2.0-53-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-53-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.2.0-52-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
linux /boot/vmlinuz-3.2.0-52-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-52-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-52-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
echo 'Loading Linux 3.2.0-52-generic ...'
linux /boot/vmlinuz-3.2.0-52-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-52-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-49-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
linux /boot/vmlinuz-3.2.0-49-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-49-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-49-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
echo 'Loading Linux 3.2.0-49-generic ...'
linux /boot/vmlinuz-3.2.0-49-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-49-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-45-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
linux /boot/vmlinuz-3.2.0-45-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-45-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-45-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
echo 'Loading Linux 3.2.0-45-generic ...'
linux /boot/vmlinuz-3.2.0-45-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-45-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-41-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
linux /boot/vmlinuz-3.2.0-41-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-41-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-41-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
echo 'Loading Linux 3.2.0-41-generic ...'
linux /boot/vmlinuz-3.2.0-41-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-41-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-40-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
linux /boot/vmlinuz-3.2.0-40-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-40-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-40-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
echo 'Loading Linux 3.2.0-40-generic ...'
linux /boot/vmlinuz-3.2.0-40-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-40-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-39-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
linux /boot/vmlinuz-3.2.0-39-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-39-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-39-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
echo 'Loading Linux 3.2.0-39-generic ...'
linux /boot/vmlinuz-3.2.0-39-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-39-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-38-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
linux /boot/vmlinuz-3.2.0-38-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-38-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-38-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
echo 'Loading Linux 3.2.0-38-generic ...'
linux /boot/vmlinuz-3.2.0-38-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-38-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=a7237fd9-87a1-40e1-aa03-98693376e3f9 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt5)'
search --no-floppy --fs-uuid --set=root a7237fd9-87a1-40e1-aa03-98693376e3f9
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/25_custom ###
menuentry "Windows UEFI bkpbootmgfw.efi" {
search --fs-uuid --no-floppy --set=root 96AD-5B21
chainloader (${root})/EFI/Microsoft/Boot/bkpbootmgfw.efi
}
menuentry "Windows Boot UEFI loader" {
search --fs-uuid --no-floppy --set=root 96AD-5B21
chainloader (${root})/EFI/Boot/bkpbootx64.efi
}
menuentry "EFI/boot/bootx64.efi" {
search --fs-uuid --no-floppy --set=root CEC05142C05131C7
chainloader (${root})/EFI/boot/bootx64.efi
}
menuentry "EFI/boot/bootx64.efi.efi" {
search --fs-uuid --no-floppy --set=root CEC05142C05131C7
chainloader (${root})/EFI/boot/bootx64.efi.efi
}
### END /etc/grub.d/25_custom ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda3)" --class windows --class os {
insmod part_gpt
insmod ntfs
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set=root 205031AF50318D12
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1229886
Title:
Grub2 cannot bring Win 7 out of hibernation - error 0xc000009a
Status in “grub2” package in Ubuntu:
Confirmed
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1229886/+subscriptions
More information about the foundations-bugs
mailing list