Dual boot Fedora 17/Windows 7 + UEFI
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2012

    Question Dual boot Fedora 17/Windows 7 + UEFI

    Have tried numerous different solutions for days without finding a working solution to this. I have a new UEFI enabled PC with Windows 7 installed. I have shrunk the windows partition to make room for Fedora 17. Booted the Fedora 17 DVD (via UEFI) and ran installation. I setup my partitioning as follows:

    LVM Volume Groups        size     sys    format
        vg_borg1           905664
            lv_home        820288    ext4    yes
            lv_swap         34176    swap    yes
            lv_root         51200    ext4    yes
    Hard drives
        md126 (/dev/md126)
            md126p1        100    /boot/efi    EFI System Partition (fat32)
            md126p2        128                 unknown
            md126p3     905958                 ntfs
            md126p4        500    /boot        ext4
            md126p5     905686    vg_borg1     LVM
    The installation of Fedora 17 completed successfully, but upon rebooting it only displays a blank grub loader. The same thing happens if I let anaconda setup the partitioning, with the exception that it sets up an additional EFI partition instead of using the existing one.

    Have I setup something wrong?
    Last edited by ashram; 19th October 2012 at 04:55 AM. Reason: I specified the wrong information

  2. #2
    Join Date
    Jan 2011
    Woonsocket, RI

    Re: Dual boot Fedora 17/Windows 7 + UEFI

    If by "blank grub loader" you mean that you get a GRUB display that shows no options, then it sounds like you're missing entries in your grub.conf file in /boot/efi/EFI/redhat (that is, the EFI/redhat directory on your first disk). You might be able to get it to work by editing this file manually. Be aware that on EFI installations, Fedora uses GRUB Legacy, not GRUB 2, so follow the instructions for configuring GRUB Legacy when you edit this file.

    Another option might be to install another boot loader. I describe several here. My personal favorite is the Linux kernel's EFI stub boot loader, which is included in the 3.3.0 and later kernels. Since Fedora 17 ships with a suitable kernel, you should be able to get it to work. The trouble is that it requires extra configuration that's usually a bit tricky. The easiest way to get it running is to use my rEFInd boot manager (or perhaps gummiboot). In brief, you would:

    1. Install rEFInd as per its instructions
    2. Prepare a refind_linux.conf file to hold your boot options, again as described in the rEFInd documentation
    3. Do one of three things:
      • Convert your /boot partition to ext2fs, ext3fs, or ReiserFS and install the appropriate EFI filesystem driver. You can then place refind_linux.conf on /boot and uncomment the "scan_all_linux_kernels" option in refind.conf. When you reboot, rEFInd should then give you options for booting Linux.
      • Copy everything from /boot to your ESP (what's currently /boot/efi) and re-mount the ESP as /boot. This effectively gives you a FAT32 /boot partition that the EFI can read. You'll then have to copy refind_linux.conf to /boot and edit refind.conf as just described. When you're done, rEFInd should give you Linux boot options.
      • Copy your kernel and initrd files to the ESP, in a subdirectory of EFI (such as EFI/fedora), renaming the kernel so that it ends in .efi. When you reboot, rEFInd should give you Linux boot options. You'll need to manually copy your kernel and initrd every time you upgrade it, though.

    Although it may sound complex to set up rEFInd to boot with the EFI stub loader, it's really not that hard, and it's designed to be easy to maintain, particularly if you use a Linux /boot partition that Linux can read (FAT or, though drivers, ext2fs, ext3fs, or ReiserFS).

    One more comment: You've referred to your boot device as /dev/md126. This sounds like you may have your motherboard-based RAID support enabled. Such a configuration, particularly if you've got just one hard disk, is an invitation for pain. I see numerous posts from people who have all sorts of problems with such configurations. It's conceivable that your own problem is related to this configuration, but I can't be positive of that. You may want to look into disabling it, but this may involve adjusting some combination of options in your firmware, in Windows, and/or in Linux. You may also need to figure out where on the hard disk the firmware stores RAID settings and wipe that area clean. At the very least, I recommend you do the research to figure out what you've got.

  3. #3
    Join Date
    Oct 2012

    Lightbulb Re: Dual boot Fedora 17/Windows 7 + UEFI

    Ok, managed to get this working by installing Grub2 as per the following:

    Installed Fedora 17 as per the partitioning already mentioned.
    Boot Fedora 17 Live CD in UEFI mode
    In a terminal:
    mkdir /mnt/sysimage
    mount /dev/vg_borg1/lv_root /mnt/sysimage
    mount /dev/md126p4 /mnt/sysimage/boot
    mount -t vfat /dev/md126p1 /boot/efi
    mount --bind /dev /mnt/sysimage/dev
    mount --bind /proc /mnt/sysimage/proc
    mount --bind /sys /mnt/sysimage/sys
    chroot /mnt/sysimage
    Then followed the instructions in the following link to configure grub2

Similar Threads

  1. UEFI and Dual Boot
    By Depado in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 2nd October 2012, 05:29 PM
  2. How to make grub on F17 (uefi w/ grub 1) boot windows 7 (uefi)?
    By premudriy in forum Installation, Upgrades and Live Media
    Replies: 4
    Last Post: 21st August 2012, 06:58 PM
  3. How to create a dual-boot (dual boot) with Windows XP Home Edition and Fedora Core 5:
    By Genecks in forum Guides & Solutions (Not For Questions)
    Replies: 5
    Last Post: 18th October 2011, 01:05 PM
  4. How to install fedora 12 from USB and make dual boot BCD using Windows 7 boot loader
    By evildesirez in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 4th January 2010, 06:56 PM
  5. Windows XP & Fedora 11 dual-boot problem (using Windows bootloader)
    By zmdmw52 in forum Installation, Upgrades and Live Media
    Replies: 7
    Last Post: 9th August 2009, 07:29 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts