Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Grub2 Multi Boot ignores Fedora

  1. #1
    Join Date
    Feb 2010
    Location
    durham, uk
    Beans
    3
    Distro
    Ubuntu

    Grub2 Multi Boot ignores Fedora

    I have set up my desktop pc with Windows 7, Windows XP, Ubuntu 9.10 and openSUSE 11.2 on disk sda. My Swap partition and Fedora 12 are on disc sdb and my Home partions are on disc sdc. GRUB2 menu allows me to boot into all the operating system except Fedora.
    I have edited the file /etc/grub.d/40_custom as follows

    menuentry "Fedora 12 - 2.6.32.9-70 (on /dev/sdb2)" {
    insmod ext2
    set root=(hd1,2)
    search --no-floppy --fs-uuid --set 745f4361-0629-41aa-9dfd-edd7f6679268
    linux /boot/vmlinuz-2.6.32.9-70.fc12 root=UUID= 745f4361-0629-41aa-9dfd-edd7f6679268 ro quiet splash
    initrd /boot/initrd-2.6.32.9-70.fc12
    }

    but GRUB2 appears to ignore it completely and I cannot boot into Fedora.
    Can anyone tell me what I am doing wrong?

  2. #2
    Join Date
    Jan 2009
    Location
    Stockholm, Sweden
    Beans
    593
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub2 Multi Boot ignores Fedora

    After editing 40_custom you have to run the command:

    sudo update-grub

    in a terminal for the changes to take effect.

    Also you should NOT remove the first lines of 40_custom when you add your fedora entry, if you remove them it won't work either.
    Since when is floor not a synonym of horizontal wardrobe?

  3. #3
    Join Date
    Feb 2010
    Location
    durham, uk
    Beans
    3
    Distro
    Ubuntu

    Re: Grub2 Multi Boot ignores Fedora

    Tom

    Thanks for the reply. The new code I showed above was added to the end of the original 40_Custom file code. But after running making this file executable and running update-grub the resultant grub.cfg file text has not changed:-
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-2.6.31-20-generic
    Found initrd image: /boot/initrd.img-2.6.31-20-generic
    Found linux image: /boot/vmlinuz-2.6.31-14-generic
    Found initrd image: /boot/initrd.img-2.6.31-14-generic
    Found memtest86+ image: /boot/memtest86+.bin
    ls: cannot access /media/SHARED: No such file or directory
    Found Windows 7 (loader) on /dev/sda2
    Found openSUSE 11.2 (x86_64) on /dev/sda6
    done

    I think the 30_Os-prober is only looking at disc sda? But if so, I don't know how to make it look at all 3 disks.

  4. #4
    Join Date
    Feb 2010
    Location
    Chicago metro
    Beans
    1,310
    Distro
    Ubuntu Development Release

    Re: Grub2 Multi Boot ignores Fedora

    Quote Originally Posted by bismay46 View Post
    I think the 30_Os-prober is only looking at disc sda? But if so, I don't know how to make it look at all 3 disks.
    You are most likely not going to have much success getting the Os-prober to recognize Fedora. Hopefully, you installed grub to Fedora's partition when you during Fedora's install. If this is the case, you can just chainload that partition by using

    Code:
    menuentry "chainload Fedora on sdb2"{
    set root=(hd1,2)
    chainloader +1
    }
    If this helped you, please take the time to rate the value of this post:
    http://rate.affero.net/andrewthomas/

  5. #5
    Join Date
    Feb 2010
    Location
    Chicago metro
    Beans
    1,310
    Distro
    Ubuntu Development Release

    Re: Grub2 Multi Boot ignores Fedora

    Quote Originally Posted by bismay46 View Post
    I have edited the file /etc/grub.d/40_custom as follows

    menuentry "Fedora 12 - 2.6.32.9-70 (on /dev/sdb2)" {
    insmod ext2
    set root=(hd1,2)
    search --no-floppy --fs-uuid --set 745f4361-0629-41aa-9dfd-edd7f6679268
    linux /boot/vmlinuz-2.6.32.9-70.fc12 root=UUID= 745f4361-0629-41aa-9dfd-edd7f6679268 ro quiet splash
    initrd /boot/initrd-2.6.32.9-70.fc12
    }
    Alternatively, I think that you are missing a couple of things from your entry.
    For 32-bit:
    Code:
    menuentry "Fedora 12 - 2.6.32.9-70 (on /dev/sdb2)" {
    insmod ext2
    set root=(hd1,2)
    search --no-floppy --fs-uuid --set 745f4361-0629-41aa-9dfd-edd7f6679268
    linux /boot/vmlinuz-2.6.32.9-70.fc12.i686 ro root=UUID= 745f4361-0629-41aa-9dfd-edd7f6679268 LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
    initrd /boot/initramfs-2.6.32.9-70.fc12.i686.img
    }
    Or 64-bit:
    Code:
    menuentry "Fedora 12 - 2.6.32.9-70 (on /dev/sdb2)" {
    insmod ext2
    set root=(hd1,2)
    search --no-floppy --fs-uuid --set 745f4361-0629-41aa-9dfd-edd7f6679268
    linux /boot/vmlinuz-2.6.32.9-70.fc12.x86_64 ro root=UUID= 745f4361-0629-41aa-9dfd-edd7f6679268 LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
    initrd /boot/initramfs-2.6.32.9-70.fc12.x86_64.img
    }
    If this helped you, please take the time to rate the value of this post:
    http://rate.affero.net/andrewthomas/

  6. #6
    Join Date
    Jan 2009
    Location
    Stockholm, Sweden
    Beans
    593
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub2 Multi Boot ignores Fedora

    Quote Originally Posted by bismay46 View Post
    Tom

    Thanks for the reply. The new code I showed above was added to the end of the original 40_Custom file code. But after running making this file executable and running update-grub the resultant grub.cfg file text has not changed:-
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-2.6.31-20-generic
    Found initrd image: /boot/initrd.img-2.6.31-20-generic
    Found linux image: /boot/vmlinuz-2.6.31-14-generic
    Found initrd image: /boot/initrd.img-2.6.31-14-generic
    Found memtest86+ image: /boot/memtest86+.bin
    ls: cannot access /media/SHARED: No such file or directory
    Found Windows 7 (loader) on /dev/sda2
    Found openSUSE 11.2 (x86_64) on /dev/sda6
    done

    I think the 30_Os-prober is only looking at disc sda? But if so, I don't know how to make it look at all 3 disks.
    Dont care about the output of update-grub, thats only the output of the os-prober. Your fedora entry was most likely added anyway. Look in /boot/grub/grub.cfg to be sure.
    Since when is floor not a synonym of horizontal wardrobe?

  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Grub2 Multi Boot ignores Fedora

    Related to andrewthomas's post. You have two drives so you have two MBR's. Did you (or can you) install Fedora's boot loader to the MBR of sdb?

    You can also chainboot to the MBR.
    menuentry "chainload Fedora on sdb"{
    set root=(hd1)
    chainloader +1
    }
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  8. #8
    Join Date
    Feb 2010
    Location
    durham, uk
    Beans
    3
    Distro
    Ubuntu

    Re: Grub2 Multi Boot ignores Fedora

    Thanks Tom, Andrew & Old Fred for your comments and advice.

    I tried chainloading using Andrew's code. (I think Old Fred's would have the same result.)
    The result was a new entry in the Grub Menu but when selected it I got the error message:
    'BOOTMGR is missing
    Press Ctrl+Alt+Delto restart'

    I then added Andrew's 64bit code to the /etc/grub.d/40_custom record and executed update-grub. Again the result was a new entry in the Grub Menu but when selected it I got the error message:
    'error: unknown command \|
    Press any key to continue'

    When I installed Fedora 12 I am not sure what I keyed into the Grub Screen. I do remember that the installer did not appear to recognise the other Operating Systems at the time and the Installation Guide did not clarify my problem. If anyone can tell me what to key into this screen, I will reinstall Fedora 12 and see if it gets round my problem. (Last time I was only able to log into Fedora until I recreated my Grub Files from a backup I had made.)

  9. #9
    Join Date
    Feb 2010
    Location
    Chicago metro
    Beans
    1,310
    Distro
    Ubuntu Development Release

    Re: Grub2 Multi Boot ignores Fedora

    Quote Originally Posted by bismay46 View Post

    If anyone can tell me what to key into this screen, I will reinstall Fedora 12 and see if it gets round my problem.
    Look at the screenshot that I attached. Just make sure that your BIOS order is correct and
    use
    Code:
    menuentry "chainload Fedora on sdb"{
    set root=(hd1)
    chainloader +1
    }
    for the MBR of sdb method (although I'm not sure that the installer will give you this option) or
    Code:
    menuentry "chainload Fedora on sdb2"{
    set root=(hd1,2)
    chainloader +1
    }
    for the partition method
    Attached Images Attached Images
    If this helped you, please take the time to rate the value of this post:
    http://rate.affero.net/andrewthomas/

  10. #10
    Join Date
    Apr 2008
    Beans
    11,707

    Re: Grub2 Multi Boot ignores Fedora

    I found that Lucid's (or Debian Sid's) grub2 had no problem finding the same. Here's my Boot Info Script RESULTS.text from that:

    Lucid grub.cfg with Fedora.tar.gz

    And upgrading to Lucid's grub2 is not difficult.

    First make sure you don't have mixed legacy grub and grub2 files by running:

    Code:
    ls /boot/grub
    If you see both a menu.lst and a grub.cfg stop! This won't help you! (It's all in alphabetical order so it's easy to see.)

    Should you decide to upgrade to the latest grub2 you'll need to purge the old and install the new, but you need to know if you're running 32bit or 64bit Ubuntu so run:

    Code:
    uname -m
    (64 bit users would see x86_64, 32 bit users would see i686)

    Then find the new packages here:

    http://packages.ubuntu.com/lucid/grub-common

    http://packages.ubuntu.com/lucid/grub-pc

    Once you know you've saved the new packages go to terminal and run:

    Code:
    sudo apt-get purge --remove grub-pc && sudo apt-get purge --remove grub-common
    Then go to the location where you saved the two new packages and beginning with "grub-common" just double-click the packages and let gdebi do the work.

    Then run:

    Code:
    sudo update-grub
    And be patient! Wait until it says done! Did it find Fedora? If no try:

    Code:
    sudo apt-get install --reinstall libdebian-installer4
    Code:
    sudo os-prober
    Code:
    sudo update-grub
    Still no go? Then it's time to see the output of the Boot Info Script:

    http://bootinfoscript.sourceforge.net/

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •