[CentOS] Detect Windows installation and update GRUB

After installing CentOS on your wannabe dual-boot machine, you realize with horror that for very important and critical reasons, your system does not have a dual boot menu and it's not able to recognize and read the Windows partition.

The solution is luckily very simple:

yum install epel-release
yum install ntfs-3g

This will allow the system to correctly manage NTFS filesystems.

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

This will update GRUB so that it shows the dual boot options now that it's able to recognize the Windows partition.

grub2-set-default X

This is optional and it's used to set the X kernel/OS as default when starting the system. You can find the number by reading the file /boot/grub2/grub.cfg

No comments:

Post a Comment

With great power comes great responsibility.

Da grandi poteri derivano grandi responsabilità.