Fedora 18 install grub to root partition, not mbr?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 13 of 13
  1. #1
    Join Date
    Apr 2008
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fedora 18 install grub to root partition, not mbr?

    Hi,

    I want to install Fedora 18 to my multiboot pc with mbr pointing to an existing Fedora 16 with grub 1 and chainload 18 from that. Is it doable? When I ran a test install in virtualbox, the new anaconda did not give any grub install options, but just went ahead and wrote to mbr.

    Thanks

  2. #2
    Join Date
    May 2010
    Posts
    1,058
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    There is no such option, it's considered unreliable for ext[234] by upstream GRUB, and anaconda team has thus far decided not to use --force like in previous versions. So you can choose to not install a boot loader in new anaconda, and after the installation is complete but before you reboot, you can

    chroot /mnt/sysimage
    grub2-install --force /dev/sdXY

    Where you complete XY based on you drive letter and partition number.

  3. #3
    Join Date
    Nov 2012
    Location
    India
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    Why not just create a new partition for you fedora 18, install into it without installing grub, booting into 16 and updating grub from there. Theoretically it should pick up your new fedora 18 installation and give you that option henceforth.

  4. #4
    Join Date
    May 2010
    Posts
    1,058
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    Quote Originally Posted by Inkit
    Why not just create a new partition for you fedora 18, install into it without installing grub, booting into 16 and updating grub from there. Theoretically it should pick up your new fedora 18 installation and give you that option henceforth.
    Yes, although the F16 GRUB is prerelease GRUB2. There have been many changes to GRUB since then.

  5. #5
    Join Date
    Apr 2008
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    Quote Originally Posted by chrismurphy
    There is no such option, it's considered unreliable for ext[234] by upstream GRUB, and anaconda team has thus far decided not to use --force like in previous versions.
    Interesting, because that is exactly how I'm booting Fedora 17, and OpenSuse 12.1 (both on Ext4) for most of the past year, without apparent issues.

  6. #6
    Join Date
    May 2010
    Posts
    1,058
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    Quote Originally Posted by dsmithhfx
    Interesting, because that is exactly how I'm booting Fedora 17, and OpenSuse 12.1 (both on Ext4) for most of the past year, without apparent issues.
    The Fedora 17 installer had a UI option to choose to install the boot loader to a partition. Fedora 18's installer doesn't.

    The Fedora 17 installer invoked grub-install --force to make grub-install embed to a ext formatted partition. The Fedora 18 installer won't.

  7. #7
    Join Date
    Apr 2008
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    To answer my own, original question, in virtualbox testing it seems it is indeed possible to install grub2 to the root partition rather than mbr and "chainload" it from another OS.

    I got tripped up on the syntax though, grub 2 in Fedora does not use "chainload +1" at least to chainload another linux:

    menuentry = 'name-of-menu-entry' {
    insmod ext2 #don't use "ext3" or "ext4"; "ext2" covers them all
    set root='hdn,n' #n,n=hdd numbering per grub convention; note single quotes instead of ()
    multiboot /boot/grub2/i386-pc/core.img #even though this is an x86_64 installation
    }

    After a kernel update of the newly-installed FC18 the host grub2 is still able to "chainload" it without modification to grub.cfg.
    Last edited by dsmithhfx; 9th February 2013 at 03:17 PM. Reason: spelling

  8. #8
    Join Date
    Jul 2009
    Posts
    1,234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    Last edited by David Batson; 8th February 2013 at 08:52 PM.
    Fedora 19 Gnome on a ThinkPad X220, i5-2540M CPU, Intel HD Graphics 3000, Intel N 6205 wireless, and Sierra Wireless 754S Mobile Hotspot (AT&T)

  9. #9
    Join Date
    May 2010
    Posts
    1,058
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    Quote Originally Posted by dsmithhfx
    multiboot /boot/grub2/i386/core.img
    Why do you use GRUB2 to load another GRUB2?

    The first GRUB2 should instead use configfile to load the grub.cfg of the distribution you want to load.

  10. #10
    Join Date
    Apr 2008
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    I got it working the way I want.

    Thanks

  11. #11
    Join Date
    Jan 2010
    Posts
    7,684
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    It might be useful to others to describe how you got it working.

    What I'm finding with grub2, in Fedora and other systems, e.g., Debian, Arch, Ubuntu, etc., is that it will usually find the other systems on the machine. If it doesn't, and I mount another system, for example, if I'm in Ubuntu and Fedora is on /dev/sda2 and I do mount /dev/sda2 /mnt, then run grub-mkconfig, it will find another Linux system. It won't be able to boot FreeBSD, for that I have to use the chainloader syntax.

  12. #12
    Join Date
    Apr 2008
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    I did describe it. What part didn't you understand?

  13. #13
    Join Date
    Jan 2010
    Posts
    7,684
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Fedora 18 install grub to root partition, not mbr?

    Yup so you did, just looking at new posts, it looked as if you got another suggestion and then just answered it's working. Sorry, too early in the morning

Similar Threads

  1. After a fresh install my /root partition says full... but 28.4GB is free
    By green112 in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 19th August 2011, 07:50 AM
  2. reinstall grub on the root partition
    By sycamorex in forum Installation, Upgrades and Live Media
    Replies: 7
    Last Post: 16th August 2008, 06:08 PM
  3. Grub on MBR or /root partition ?
    By marshalx in forum Installation, Upgrades and Live Media
    Replies: 7
    Last Post: 13th April 2007, 01:01 PM
  4. installer can't find root partition on existing win/linux install
    By icthy in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 29th October 2005, 04:19 PM
  5. installer can't find root partition on existing win/linux install
    By icthy in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 14th October 2005, 01:05 PM

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
  •