F21 Grub Issues
Bidski
bidski at iinet.net.au
Wed Nov 19 05:18:57 UTC 2014
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. So I reinstalled Windows to restore the boot files and
now I am back in the Live USB trying to restore grub.
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-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
However, Windows 7 is still not detected. I found this post [1] which
says to put a manual boot entry into /etc/grub.d/40_custom, so I added
this to that file
menuentry 'Windows 7' { insmod part_gpt insmod chain insmod ntfs
insmod fat set root='hd0, gpt3' chainloader
/EFI/Microsoft/Boot/bootmgfw.efi boot }
However now when I reboot I get dropped into the grub console. I know
(pretty sure) it is not the manual Windows entry as I can manually
type the above commands at the grub console and boot into Windows.
Also, if I comment that manual entry out I still wind up back in the
grub console.
What is happening here? How can I generate some more diagnostic
information relating to why grub is failing?
Just to reiterate
My HDD has a GPT partition
Root, home, and swap partitions are in an LVM partition
Below is the partition structure for my HDD (this is hd0 according to
grub).
/dev/sda1 Microsoft Reserved
/dev/sda2 Microsoft basic data
/dev/sda3 EFI System (/boot/efi)
/dev/sda4 /boot
/dev/sda5 LVM (root, /home, swap)
Bidski
Links:
------
[1] https://bugzilla.redhat.com/show_bug.cgi?id=986731#c21
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/test/attachments/20141119/329270a4/attachment.html>
More information about the test
mailing list