Windows 8 Dual boot lost after Fedora upgrade
Gary Stainburn
gary.stainburn at ringways.co.uk
Fri Jul 3 15:09:34 UTC 2015
I've finally decided to have a go at fixing the problem where the Windows 8
option disappeared from my GRUB menu when I upgraded from F19 to F20.
Working through various Google responses I've found that i had a load of stuff
missing, including
* .mod files
* /boot/etc/EFI/Microsoft
I installed grub2-efi-modules-2.00-27.fc20.x86_64 and then copied ntfs.mod and
parted_msdos.mod to /boot/efi/EFI/fedora/x86_64-efi/ which got rid of some of
the errors
I then mkdir /boot/etc/EFI/Microsoft/Boot and copied bootmgfw.efi
from /windows/Windows/Boot/EFI/bootmgfw.efi to /boot/etc/EFI/Microsoft/Boot
However, although I've fixed most of the error messages, I've still got the
error:
efi: file `/EFI/Microsoft/Boot/bootmgfw.efi` not found.
I'm now stuck. Has anyone got any suggestions what to do next?
parted shows (sda4 is the Win8 partition, sda5 is the recovery partition):
Model: ATA ST1000LM014-1EJ1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 683MB 682MB ntfs Basic data partition hidden,
diag
2 683MB 892MB 210MB fat16 EFI System Partition boot
4 1089MB 212GB 211GB ntfs Basic data partition
3 212GB 213GB 524MB ext4
6 213GB 978GB 765GB lvm
5 978GB 1000GB 21.8GB ntfs Basic data partition hidden
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/fedora-home: 705GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 705GB 705GB ext4
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/fedora-root: 53.7GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 53.7GB 53.7GB ext4
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/fedora-swap: 6317MB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 6317MB 6317MB linux-swap(v1)
my 40_custome file is:
#!/bin/sh
exec tail -n +3 $0
# 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.
menuentry "Windows 8 (BCD-UEFI configuration on system
drive /dev/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
insmod search_fs_uuid
insmod chain
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4
1098EFF798EFD96C
else
search --no-floppy --fs-uuid --set=root 1098EFF798EFD96C
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
The contents of the /boot are:
[root at gary grub.d]# cd /boot
[root at gary boot]# find . -type f
./System.map-3.19.8-100.fc20.x86_64
./System.map-3.19.5-100.fc20.x86_64
./config-3.19.5-100.fc20.x86_64
./vmlinuz-3.19.8-100.fc20.x86_64
./config-3.19.8-100.fc20.x86_64
./grub2/themes/system/fireworks.png
./grub2/themes/system/background.png
./grub2/grubenv
./grub2/grub.cfg
./.vmlinuz-3.19.8-100.fc20.x86_64.hmac
./.vmlinuz-3.19.4-100.fc20.x86_64.hmac
./.vmlinuz-3.19.5-100.fc20.x86_64.hmac
./vmlinuz-0-rescue-da98f419484443dab77787b4692f3f8f
./System.map-3.19.4-100.fc20.x86_64
./initramfs-3.19.5-100.fc20.x86_64.img
./initramfs-3.19.8-100.fc20.x86_64.img
./config-3.19.4-100.fc20.x86_64
./vmlinuz-3.19.4-100.fc20.x86_64
./initrd-plymouth.img
./efi/EFI/BOOT/BOOTX64.EFI
./efi/EFI/BOOT/fallback.efi
./efi/EFI/fedora/fonts/unicode.pf2
./efi/EFI/fedora/gcdx64.efi
./efi/EFI/fedora/grubx64.efi
./efi/EFI/fedora/BOOT.CSV
./efi/EFI/fedora/MokManager.efi
./efi/EFI/fedora/shim-fedora.efi
./efi/EFI/fedora/shim.efi
./efi/EFI/fedora/grub.cfg
./efi/EFI/fedora/x86_64-efi/part_msdos.mod
./efi/EFI/fedora/x86_64-efi/ntfs.mod
./efi/EFI/Microsoft/Boot/bootmgfw.efi
./vmlinuz-3.19.5-100.fc20.x86_64
./initramfs-3.19.4-100.fc20.x86_64.img
./initramfs-0-rescue-da98f419484443dab77787b4692f3f8f.img
More information about the users
mailing list