FedoraForum.org - Fedora Support Forums and Community
Page 2 of 2 FirstFirst 1 2
Results 16 to 20 of 20
  1. #16
    Join Date
    Aug 2007
    Posts
    162

    Re: Fedora 25 Install has no mention of dual boot

    Where should this menuentry code be put? Into Grub2?
    You would put the custom menuentry code into the file /etc/grub.d/40_custom as I mentioned in my first post #9.

    Code:
    menuentry "Windows 10" {
        insmod part_msdos
        set root='(hd1)'
        drivemap -s hd0 hd1
        chainloader (hd1,2)+1
    }
    You would then regenerate the grub.cfg with grub2-mkconfig -o /boot/grub2/grub.cfg. This will include everything in the /etc/grub.d/40_custom file.
    Last edited by amiga; 4th November 2017 at 07:37 PM. Reason: Added detail

  2. #17
    Join Date
    May 2006
    Location
    West Covina, CA
    Posts
    84

    Re: Fedora 25 Install has no mention of dual boot

    I have edited the /etc/grub.d/40_custom file by adding the menuentry you developed so that it now reads

    Code:
    [root@localhost rhb100]# more /etc/grub.d/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 "Windows 10" {
        insmod part_msdos
        set root='(hd1)'
        drivemap -s hd0 hd1
        chainloader (hd1)+2
    }
    
    [root@localhost rhb100]
    I have an EASYBCD2.3 bootloader set to boot into Windows 10. My understanding is that when I perform the command
    Code:
    grub2-mkconfig -o /boot/grub2/grub.cfg
    it will do nothing that will in any way modify my EASYBCD2.3 bootloader into Windows 10 but will instead only modify the grub.cfg file.

    IS THAT CORRECT?

  3. #18
    Join Date
    Aug 2007
    Posts
    162

    Re: Fedora 25 Install has no mention of dual boot

    I have edited the /etc/grub.d/40_custom file by adding the menuentry you developed so that it now reads
    I made a correction to my earlier post and in my earlier message. For the chainloader line you should use either

    Code:
    chainloader (hd1,2)+1
    This form attempts to access the second partition where W10 is installed.
    or
    Code:
    chainloader (hd1)+1
    This second simpler form simply accesses the Windows bootloader in the sda MBR.
    I don't know which form is best.

    I have an EASYBCD2.3 bootloader set to boot into Windows 10. My understanding is that when I perform the command
    Code:

    grub2-mkconfig -o /boot/grub2/grub.cfg

    it will do nothing that will in any way modify my EASYBCD2.3 bootloader into Windows 10 but will instead only modify the grub.cfg file.

    IS THAT CORRECT?
    Very true. However if this menuentry works you won't need EasyBCD. In post #14 I mentioned three different alternatives for solving your problem. Creating a menuentry such as this was suggestion #2 and using EasyBCD was suggestion #3. You don't need both.

    You need to set your BIOS to boot from your Linux drive sdb. If this menuentry works you will be able to chainload Windows 10 on sda. You won't need easyBCD at all.

  4. #19
    Join Date
    May 2006
    Location
    West Covina, CA
    Posts
    84

    Re: Fedora 25 Install has no mention of dual boot

    Here is the response I got to using the mkconfig command

    Code:
    [root@localhost /]# grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.14.27-100.fc19.x86_64
    Found initrd image: /boot/initramfs-3.14.27-100.fc19.x86_64.img
    Found linux image: /boot/vmlinuz-3.9.5-301.fc19.x86_64
    Found initrd image: /boot/initramfs-3.9.5-301.fc19.x86_64.img
    Found linux image: /boot/vmlinuz-0-rescue-f818137001c746098e07efef1d160c05
    Found initrd image: /boot/initramfs-0-rescue-f818137001c746098e07efef1d160c05.img
    ERROR: unsupported sector size 4096 on /dev/sdh.
    ERROR: unsupported sector size 4096 on /dev/sdh.
    ERROR: unsupported sector size 4096 on /dev/sdh.
    ERROR: unsupported sector size 4096 on /dev/sdh.
    ERROR: unsupported sector size 4096 on /dev/sdh.
    ERROR: unsupported sector size 4096 on /dev/sdh.
    ERROR: unsupported sector size 4096 on /dev/sdh.
    Found Windows Recovery Environment (loader) on /dev/mapper/pdc_cjggccgegj1
    Found Windows Recovery Environment (loader) on /dev/mapper/pdc_cjggccgegj2
    done
    [root@localhost /]#
    I changed the contents of etc/grub.d/40_custom by putting in the default statement, adding comments and making the change to your chainloader command. The new comments are listed below.

    Code:
    [root@localhost /]# more etc/grub.d/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 "Windows 10" {
        insmod part_msdos
        default=Windows 10
        set root='(hd1)'
    #   kernel is hd1 i.e. sdb
        drivemap -s hd0 hd1
    #   call sda hd1, call sdb hd0
        chainloader (hd1)+1
    #   boot into sda MBR
    }
    
    [root@localhost /]#

  5. #20
    Join Date
    Aug 2007
    Posts
    162

    Re: Fedora 25 Install has no mention of dual boot

    The default should not be inside a menu entry. It should be placed in the file /etc/default/grub with the line
    GRUB_DEFAULT="Windows 10"

    Your latest post is incomplete. It is good that you added this menu entry but you never mentioned if it worked. After adding this entry and then updating the grub config you need to boot from this disk and select this menu entry to test it. The whole point of adding this entry is to use it.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. How to install dual boot xp Fedora 12
    By blainedix in forum Installation, Upgrades and Live Media
    Replies: 10
    Last Post: 6th January 2010, 02:35 PM
  2. 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
  3. Fedora won't install dual boot.
    By paulkruger in forum Installation, Upgrades and Live Media
    Replies: 34
    Last Post: 16th December 2009, 01:44 AM
  4. dual boot install fedora 10 with XP
    By luckydeveloper in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 28th May 2009, 12:52 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
  •