RHEL / CentOS 7 and Windows Dual Boot Legacy Mode

Here is some points to configure to make dual boot with Windows along with RHEL / CentOS 7.

  1. First Install Windows 7/8/8.1.
  2. Install RHEL/CentOS 7 with manual partition. Do not erase any existing NTFS, FAT, FAT32 Partitions.
  3. After finish Installation, reboot the machine.
  4. Notice, you can’t see the grub entry for Windows OS.
  5. Login to RHEL/CentOS 7.
  6. Become Administrator of System or Login as ROOT user.
  7. Check the boot partition of Windows, by using “fdisk -l” command and remember it.
  8. Find out the UUID of Windows boot partition and Copy it.
  9. append following entry to  “/etc/grub.d/41_custom” file.

    cat <<EOF
    menuentry “Windows” {
    insmod part_msdos
    insmod ntfs
    set root=’hd0,msdos1′
    search –no-floppy –fs-uuid –set=root <UUID OF WINDOWS BOOT PARTITION>
    chainloader +1

  10. Make “/boot/grub2/grub.conf” file  using “grub2-mkconfig -o /boot/grub2/grub.conf” command.
  11. Reboot the Machine
  12. You can see the Windows Entry in grub boot menu.