>> Hi all,
 >>
 >> I am having an issue getting F21 to dual boot with Windows 7 on an
EFI
 >> system.
 >>
 >> The first thing I did was to install Windows 7. This worked fine
and had
 >> no issues.
 >>
 >> Then I installed F21 from a LiveUSB. After some hickups, which
have now
 >> been resolved, F21 works fine.
 >>
 >> The problem I have now is that grub can not find my Windows 7
 >> installation I noticed that there were no boot files for
Microsoft in
 >> /boot/efi/EFI.
 >>
 >
 >You're saying after installing Fedora 21 after Windows 7, that there
was no
 >Microsoft directory in /boot/efi/EFI? Just a fedora directory?

This is correct, there may have also been a /boot/efi/EFI/BOOT folder
as well (not sure what this is or where it came from).

 >> So I opened up the LVM partition that contains root, /home and
swap. I
 >> mounted everything then chroot. I also notice that in
/boot/efi/EFI there
 >> are two folders 'fedora' and 'Microsoft'. I then followed the
usual default
 >> of
 >> grub2-install /dev/sda

 >grub2-install shouldn't be used on EFI systems. The grub2-efi
package
 >installs a prebaked grubx64.efi on the EFI System partition, which
looks
 >for grub.cfg on the ESP in /EFI/fedora/ whereas the grub2-install
command
 >creates a custom grubx64.efi, deletes the original installed one,
and looks
 >for grub.cfg in /boot/grub2/.

 >I suggest 'dnf reinstall grub2-efi' and then deleting the grub.cfg
from
 >both locations and then creating a new one with 'grub2-mkconfig -o
 >/boot/efi/EFI/fedora/grub.cfg' and see if it has now found the
Windows
 >bootloader and correctly created an entry for it.

>> grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
 >>
 >> However, Windows 7 is still not detected.

 >Sounds like this bug. If you can reproduce this after reinstalling
grub (by
 >reinstalling the package, not using grub2-install), and recreating
the
 >grubcfg, please post the grub.cfg and the results of output from
 >'os-prober' and confirm the existence of /boot/efi/EFI/microsoft/
 >https://bugzilla.redhat.com/show_bug.cgi?id=986731

From a LiveUSB, after mounting the system and changing the root.
 I just did 
find /boot/ -name grub*cfg

The only result was
/boot/efi/EFI/fedora/grub.cfg

I deleted that, then
yum reinstall grub2-efi* shim

and 
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Grub still does not manage to find the Windows boot files. There are
also a lot of warnings about lvmetad that get displayed (might not be
lvmetad but it is LVM related).

Upon rebooting, I no longer get dumped into the grub command line and
the manual boot entry for Windows 7 that I mentioned previously seems
to work (apart from throwing an error about not finding ntfs.mod).
The Linux boot entry seems to be working fine.

Once I was booted back into my system (in F21), I re-ran
yum reinstall grub2-efi* shim
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

And grub was able to find the Windows 7 boot files via os-prober. So
it seems that the issue is trying to do all of this from the LiveUSB?
And maybe there is something happening with the installer deleting the
Windows boot files in the EFI partition?

Bidski

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test

Reply via email to