Thursday, September 4, 2025
HomeGuest BlogsHow to Dual Boot CentOS 7 with Windows 10

How to Dual Boot CentOS 7 with Windows 10

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 10.

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

windows centos dual boot

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

RELATED ARTICLES

Most Popular

Dominic
32262 POSTS0 COMMENTS
Milvus
81 POSTS0 COMMENTS
Nango Kala
6626 POSTS0 COMMENTS
Nicole Veronica
11799 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11856 POSTS0 COMMENTS
Shaida Kate Naidoo
6749 POSTS0 COMMENTS
Ted Musemwa
7025 POSTS0 COMMENTS
Thapelo Manthata
6696 POSTS0 COMMENTS
Umr Jansen
6716 POSTS0 COMMENTS