jeudi 8 janvier 2015

grub2 cannot boot windows (EFI) - Invalid Sector Size


I've been booting my Fedora 20 / Windows 7 Home Premium system using Grub2 for quite some time now. But after updating the system after ~9 months of no updates, I can no longer boot into Windows 7. Booting into Fedora is fine, but when I select Windows I get



Error: Invalid Sector Size 65535


Here is my /boot/efi/EFI/fedora/grub.cfg



#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

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 load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

terminal_output console
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (3.17.7-200.fc20.x86_64) 20 (Heisenbug)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.10-301.fc20.x86_64-advanced-630ea12e-0103-4fdd-80c9-c481ca82aebc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 dedbc16b-8123-457a-b969-03927ebbd9d2
else
search --no-floppy --fs-uuid --set=root dedbc16b-8123-457a-b969-03927ebbd9d2
fi
linuxefi /vmlinuz-3.17.7-200.fc20.x86_64 root=UUID=630ea12e-0103-4fdd-80c9-c481ca82aebc ro vconsole.font=latarcyrheb-sun16 rhgb quiet LANG=en_AU.UTF-8
initrdefi /initramfs-3.17.7-200.fc20.x86_64.img
}
menuentry 'Fedora (3.14.5-200.fc20.x86_64) 20 (Heisenbug)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.10-301.fc20.x86_64-advanced-630ea12e-0103-4fdd-80c9-c481ca82aebc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 dedbc16b-8123-457a-b969-03927ebbd9d2
else
search --no-floppy --fs-uuid --set=root dedbc16b-8123-457a-b969-03927ebbd9d2
fi
linuxefi /vmlinuz-3.14.5-200.fc20.x86_64 root=UUID=630ea12e-0103-4fdd-80c9-c481ca82aebc ro vconsole.font=latarcyrheb-sun16 rhgb quiet LANG=en_AU.UTF-8
initrdefi /initramfs-3.14.5-200.fc20.x86_64.img
}
menuentry 'Fedora (3.14.4-200.fc20.x86_64) 20 (Heisenbug)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.10-301.fc20.x86_64-advanced-630ea12e-0103-4fdd-80c9-c481ca82aebc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 dedbc16b-8123-457a-b969-03927ebbd9d2
else
search --no-floppy --fs-uuid --set=root dedbc16b-8123-457a-b969-03927ebbd9d2
fi
linuxefi /vmlinuz-3.14.4-200.fc20.x86_64 root=UUID=630ea12e-0103-4fdd-80c9-c481ca82aebc ro vconsole.font=latarcyrheb-sun16 rhgb quiet LANG=en_AU.UTF-8
initrdefi /initramfs-3.14.4-200.fc20.x86_64.img
}
menuentry 'Fedora, with Linux 0-rescue-cc5a949f27284f5196ba1d294898e73b' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-0-rescue-cc5a949f27284f5196ba1d294898e73b-advanced-630ea12e-0103-4fdd-80c9-c481ca82aebc' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 dedbc16b-8123-457a-b969-03927ebbd9d2
else
search --no-floppy --fs-uuid --set=root dedbc16b-8123-457a-b969-03927ebbd9d2
fi
linuxefi /vmlinuz-0-rescue-cc5a949f27284f5196ba1d294898e73b root=UUID=630ea12e-0103-4fdd-80c9-c481ca82aebc ro vconsole.font=latarcyrheb-sun16 rhgb quiet
initrdefi /initramfs-0-rescue-cc5a949f27284f5196ba1d294898e73b.img
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/15_Windows ###
menuentry "Windows" {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
chainloader (hd0,1)/EFI/Microsoft/bootmgfw.efi
}
### END /etc/grub.d/15_Windows ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### 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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


Partition table of /dev/sda



[root@ws1 gruss]# gdisk
GPT fdisk (gdisk) version 0.8.10

Type device filename, or press to exit: /dev/sda
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sda: 468862128 sectors, 223.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): BA0D0192-935E-4735-A15F-9846A182C1AE
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 468862094
Partitions will be aligned on 2048-sector boundaries
Total free space is 3181 sectors (1.6 MiB)

Number Start (sector) End (sector) Size Code Name
1 2048 206847 100.0 MiB EF00 EFI System Partition
2 206848 468991 128.0 MiB 0C01 Microsoft reserved ...
3 468992 204802047 97.4 GiB 0700 Basic data partition
4 204802048 205826047 500.0 MiB 0700
5 205826048 222111743 7.8 GiB 8200
6 222111744 326969343 50.0 GiB 0700
7 326969344 468860927 67.7 GiB 0700

Command (? for help):


Aucun commentaire:

Enregistrer un commentaire