(Last Updated On: February 4, 2019)

This guide will show you how you can easily Dual Boot CentOS 7 with Windows 10. This should also work for dual booting CentOS 7 with Windows 7 & Windows 8.

By default, CentOS anaconda installer won’t configure grub to handle NTFS filesystem or partitions. So manual intervention is required for dual booting CentOS 7 with Windows 10.

How to Dual Boot CentOS 7 with Windows 10


Boot into your CentOS 7 machine and Mount the partition containing Windows installation. You can install gparted disk partition Manager to help you take a note of Windows Partition, just type the following command in the terminal

sudo yum -y install epel-release
sudo yum install -y gparted
sudo gparted

To be able to mount the NTFS filesystem on CentOS 7, install the following programs.

sudo yum -y install ntfs-3g fuse ntfsprogs ntfsprogs-gnomevfs

Edit the  /etc/grub.d/40_custom file. Make a backup of it first.

sudo cp /etc/grub.d/40_custom  /etc/grub.d/40_custom.original

Then edit the /etc/grub.d/40_custom file, open it with vi editor or nano.

sudo vi /etc/grub.d/40_custom

Add the following Lines at the bottom

 Menuentry "Windows" {
set root=(hd0,3)
 chailoader +1
}

You can change the menu entry title menu within the  ” ” to reflect your windows os version though not necessary.

The line root=(hd0, 3)  means the fourth partition on the first hard drive. Replace 3 with your windows partition number taken from gparted since my WIndows 10 partition on the picture below is at /dev/sda3

Run

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

Check the new configuration if it contains windows details

sudo cat  /boot/grub.cfg

Reboot your system

 sudo reboot

You should now be able to dual-boot CentOS 7 with Windows 10. Also read:

Create Windows 10 bootable USB on Linux