linux - Windows 8 doesn't show up in my grub menu

08
2014-07
  • user11177

    I have two HD's, one with Fedora 20, and the other with Windows 8.

    I can choose at start up which drive to boot from, and choosing the one where I installed windows does make it start, but I would like to have the option in the grub menu instead of having to press F11 when my computers starts etc.

    Here is the output of fdisk -l:

    Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: gpt
    Disk identifier: 1815802D-B749-4FD4-8297-EABE9FD93AE0
    
    Device           Start          End   Size Type
    /dev/sda1         2048       616447   300M Windows recovery environment
    /dev/sda2       616448       821247   100M EFI System
    /dev/sda3       821248      1083391   128M Microsoft reserved
    /dev/sda4      1083392    976773119 465.3G Microsoft basic data
    
    
    Disk /dev/sdb: 55.9 GiB, 60022480896 bytes, 117231408 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x000a4b0c
    
    Device    Boot     Start       End   Blocks  Id System
    /dev/sdb1 *         2048   1026047   512000  83 Linux
    /dev/sdb2        1026048 117229567 58101760  8e Linux LVM
    
    
    Disk /dev/mapper/fedora_5586577d00-root: 15.6 GiB, 16777216000 bytes, 32768000 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    Disk /dev/mapper/fedora_5586577d00-swap: 5.6 GiB, 6002049024 bytes, 11722752 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    Disk /dev/mapper/fedora_5586577d00-home: 34.2 GiB, 36712742912 bytes, 71704576 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    

    I have searched google for a solution, and several recommended running grub2-mkconfig -o /boot/grub2/grub.cfg but that doesn't fix my problem, nothing changes.

    How can I add Windows 8 to my grub menu?

  • Answers
  • AlexiusFlavius

    Had this problem like 2 days ago, Fixed by modifying /etc/grub.d/40_custom Add as follows:

    menuentry "Windows Vers" {
    set root='(hdX,X)'
    chainloader +1
    }
    

    Where hdX,X is your disk with windows, /dev/sda1 is hd0,0, /dev/sdb1 is hd1,0 and so on.

    Then run grub2-mkconfig -o /boot/grub2/grub.cfg Hope it will work for you the same, as it worked for me.


  • Related Question

    linux - Dual-booting Ubuntu and Pardus with GRUB2...Pardus no show?
  • Ibn Ali al-Turki

    I have Ubuntu 10.10 installed and used to dual-boot Fedora, but I replaced Fedora with Pardus.

    After the install, I went into ubuntu, and did a sudo update-grub. It detected my Pardus 2011 install there. When I rebooted, it did not show up in my grub2 menu however. I went back to Ubuntu and did it again...then checked the grub.cfg, and it is not there. I have read that Pardus uses a grub legacy.

    How can I get Pardus into my grub2 menu?

    Thanks!

    sudo fdisk -l

        Disk /dev/sda: 500.1 GB, 500107862016 bytes
        255 heads, 63 sectors/track, 60801 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes
        Sector size (logical/physical): 512 bytes / 512 bytes
        I/O size (minimum/optimal): 512 bytes / 512 bytes
        Disk identifier: 0xd9b3496e
    
        Device Boot Start End Blocks Id System
        /dev/sda1 * 1 15197 122067968 83 Linux
        /dev/sda2 36394 60802 196059757 5 Extended
        /dev/sda3 15197 30394 122067968 83 Linux
        /dev/sda5 36394 59434 185075308 7 HPFS/NTFS
        /dev/sda6 59434 60802 10983424 82 Linux swap / Solaris
    
        Partition table entries are not in disk order
    

    and

    update-grub

    Found linux image: /boot/vmlinuz-2.6.35-25-generic
    Found initrd image: /boot/initrd.img-2.6.35-25-generic
    Found memtest86+ image: /boot/memtest86+.bin
    Found Pardus 2011 (2011) on /dev/sda3
    

    Yet after this, I go to grub.cfg, and Pardus is not there.


  • Related Answers
  • Subhash

    When you installed pardus, you should have made the installer to not to install the bootloader on the MBR and instead do it on the pardus partition? Grub2 will not update be able to boot pardus if you have not done this.

  • Subhash

    A bootloader installation is required for each of your Linux installations. But, one of these bootloader programs should be installed on MBR. The MBR on a disk is only 512 in size and the rest of the bootloader is installed on the /boot directory.

    So, Pardus and Ubuntu BOTH need to have their bootloader programs installed in their respective /boot directories. Only one of these bootloader programs, either that of Pardus or Ubuntu, needs to be written to the MBR. The other boot loader program should be written directly to the system partition.

    You shouldn't choose to not to install the bootloader for Pardus. Install Pardus but choose not to install the bootloader to MBR and instead choose /boot directory. Next boot into Ubuntu and update grub. It will then recognize the Pardus partition and copy its boot entry to grub.cfg.

    For basic multiboot info, try this How To DualBoot or MuliBoot Operating Systems.