Results 1 to 10 of 15

Thread: GRUB 2 does not recognize Fedora 13

Hybrid View

  1. #1
    Join Date
    Jun 2010
    Location
    Chicago, IL
    Beans
    53
    Distro
    Ubuntu 10.04 Lucid Lynx

    GRUB 2 does not recognize Fedora 13

    Hi, all

    I had WinXP on my laptop, and went on to install Fedora 13 and Ubuntu 10.04, in that order. When I installed Ubuntu, GRUB no longer recognized Fedora (only Ubuntu and WinXP), so I cannot boot into that system. I tried editing the 40_custom file in /etc/grub.d using the documentation for GRUB2 and a couple of forum threads, then running sudo update-grub, but to no avail (Fedora is not in the output for update-grub).

    Here's the output of a few commands I used to generate 40_custom, as well as the Fedora grub.conf file and 40_custom itself. Please, help me find what I'm missing - I've been at this for a few hours now...

    fdisk -l

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 2363 18980709 7 HPFS/NTFS
    /dev/sda2 4222 4285 512000 83 Linux
    /dev/sda3 4285 7296 24186880 8e Linux LVM
    /dev/sda4 2364 4222 14924801 5 Extended
    /dev/sda5 2364 4138 14251008 83 Linux
    /dev/sda6 4138 4222 672768 82 Linux swap / Solaris


    blkid

    /dev/sda1: LABEL="System" UUID="209888C0988895C6" TYPE="ntfs"
    /dev/sda2: UUID="94c4291d-0b57-456b-a8b4-676e1226eaad" TYPE="ext4"
    /dev/sda3: UUID="4shvDL-k2Zb-0R97-RLCo-w0Uf-8tMX-5O2W1X" TYPE="LVM2_member"
    /dev/sda6: UUID="c16e9634-7130-454b-b78d-a4571336244a" TYPE="swap"
    /dev/sda5: UUID="429c9bd7-b8d0-4ffb-9fdf-6cd009f18773" TYPE="ext4"


    Contents of the entire grub.conf file from mounting sda2

    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You have a /boot partition. This means that
    # all kernel and initrd paths are relative to /boot/, eg.
    # root (hd0,1)
    # kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
    # initrd /initrd-[generic-]version.img
    #boot=/dev/sda
    default=0
    timeout=5
    splashimage=(hd0,1)/grub/splash.xpm.gz
    hiddenmenu
    title Fedora (2.6.33.5-112.fc13.i686.PAE)
    root (hd0,1)
    kernel /vmlinuz-2.6.33.5-112.fc13.i686.PAE ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
    initrd /initramfs-2.6.33.5-112.fc13.i686.PAE.img
    title Fedora (2.6.33.5-112.fc13.i686)
    root (hd0,1)
    kernel /vmlinuz-2.6.33.5-112.fc13.i686 ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
    initrd /initramfs-2.6.33.5-112.fc13.i686.img
    title Fedora (2.6.33.3-85.fc13.i686)
    root (hd0,1)
    kernel /vmlinuz-2.6.33.3-85.fc13.i686 ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
    initrd /initramfs-2.6.33.3-85.fc13.i686.img
    title Other
    rootnoverify (hd0,0)
    chainloader +1

    40_custom

    #!/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 "Fedora 13" {
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set 94c4291d-0b57-456b-a8b4-676e1226eaad
    linux /boot/vmlinuz-2.6.33.5-112.fc13.i686.PAE root=UUID=94c4291d-0b57-456b-a8b4-676e1226eaad ro quiet splash
    initrd /boot/initramfs-2.6.33.5-112.fc13.i686.PAE.img
    }

  2. #2
    Join Date
    Nov 2009
    Location
    Mataro, Spain
    Beans
    13,850
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: GRUB 2 does not recognize Fedora 13

    Are you sure it can pick up Fedora in LVM?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 14.04 LTS 64bit & Windows 10 Pro 64bit

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: GRUB 2 does not recognize Fedora 13

    It looks like Fedora is still old grub so the partition numbers are different.

    set root=(hd0,1)

    But the boot partition is sda2 so it should be (hd0,2) in grub2 nomenclature. For an entry in grub2.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Aug 2009
    Location
    United States
    Beans
    4,460
    Distro
    Ubuntu Development Release

    Re: GRUB 2 does not recognize Fedora 13

    First give a try in Ubuntu:
    Code:
    sudo update-grub
    Code:
    sudo grub-mkconfig
    If that does not do it.

    I have a fedora in same as logical and installed with grub to no-where and
    used these commands as I normally do to re-install grub2 to mbr from ubuntu.

    Is sda3 in a primary and your Ubuntu in logical? If so why not delete and resize extended and create a partition in extended a logical for fedora. Fedora uses grub legacy so be ready to reinstall grub 2 to from sda5 to sda. Would be easier if you gave Ubuntu a label such as "lucid. Then run this in live CD after install of Fedora. If you desire first you can try this in live CD before deleting fedora partition, up to you.

    Code:
    sudo mkdir /media/lucid
    Code:
    sudo mount /dev/sda5 /media/lucid
    Code:
    sudo grub-install --recheck --root-directory=/media/lucid /dev/sda
    Code:
    sudo umount /media/lucid
    This is given your 10.04 install is in sda5 if not change to what it is in.
    Can give partition label in Disk Utility or gparted to an unmounted drive.
    Last edited by garvinrick4; June 10th, 2010 at 05:42 AM.
    Remember hence where you come and pass it down.
    Ubuntu Forums member #899097 and Ubuntu Member:
    http://www.ubuntupocketguide.com/index_main.html
    Main Page -

  5. #5
    Join Date
    Jun 2010
    Location
    Chicago, IL
    Beans
    53
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: GRUB 2 does not recognize Fedora 13

    I have tried everything up until garvinrick4's post, but nothing worked. Not wanting to reinstall everything, I tried to downgrade to the legacy GRUB, but that one isn't even seeing Windows (I don't really care about that very much - I was going to remove it anyway). I don't understand what the deal is - Fedora does show up in the boot menu, but it gives me error 15: file not found, whatever that means. What is it looking for, exactly, and why is it unable to find it?
    I have a feeling this won't go over without a reinstall of everything...

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: GRUB 2 does not recognize Fedora 13

    I would install Fedora's grub to the PBR of the Fedora's boot partition. You then can chainload to that from either grub or grub2. Note difference in partition numbering if grub or grub2.

    title Fedora @ sda2
    root (hd0,1)
    chainloader +1

    menuentry " Fedora on sda2" {
    set root=(hd0,2)
    chainloader +1
    }

    Instructions to install Ubuntu to partition, I assume Fedora is similar.

    https://help.ubuntu.com/community/Re...tallingWindows
    #reset grub boot
    sudo grub
    find /boot/grub/stage1 #you will get a response such as (hd0,5)
    root (hdx,y) #use the numbers from the previous command x is drive, y is partition or root (hd0,5)
    setup (hd0)
    # Or
    6. Type "setup (hd0,1)". This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,1)".
    quit
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    Jun 2010
    Location
    Chicago, IL
    Beans
    53
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: GRUB 2 does not recognize Fedora 13

    I feel like I'm getting closer. Here's what I've done so far:

    Following the instructions Oldfred linked to (legacy grub version, https://help.ubuntu.com/community/Du...%20&%20earlier), I have installed Fedora's grub to the MBR, so that it's the one that shows up now when I boot up. This grub offers me to boot into Fedora or WinXP. I have gone and edited Fedora's menu.lst with the following code:

    title Ubuntu
    root (hd0,4)
    chainloader +1

    Now, when I boot up and select Ubuntu from Grub, it starts up the grub command line: grub>
    I've tried mounting sda5 in Fedora, and I can clearly see my Ubuntu filesystem, which has a /boot folder. however, I don't know how to load into it once I get into the grub command line.

Bookmarks

Posting Permissions

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