F21 Grub Issues
Joerg Lechner
julechner at aol.com
Wed Nov 19 12:01:39 UTC 2014
Hi,
I don't know, if my comment is useful for You. I always have an running Windows system, XP, 8.1. To get both system with F21 in a bootlist, in my case F12 while running through bios, I have to whitelist my current F21. In my case I think this is hardware dependency.
Kind Regards
-----Ursprüngliche Mitteilung-----
Von: Bidski <bidski at iinet.net.au>
An: test <test at lists.fedoraproject.org>
Verschickt: Mi, 19 Nov 2014 6:19 am
Betreff: F21 Grub Issues
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 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
--
test mailing list
test at lists.fedoraproject.org
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/test/attachments/20141119/28f370fb/attachment.html>
More information about the test
mailing list