After centos is installed, you cannot boot windows7.
Install Centos7 on Windows 7. After installation, the Windows 7 boot menu cannot be found.
Cause: Because CentOS 7 uses the new grub2 system, you need to enter the/boot/grub2 directory and use vi to edit the grub. cfg file.
Solution 1: Modify the Grub2 boot guide of Centos 7 and add a Windows Startup item.
1. sudo vi/boot/grub2/grub. cfg2 2. find ### BEGIN/etc/grub. d/30_os-prober ### 3 add 4 menuentry "Windows 7 (loader) (on/dev/sda1)" {5 insmod ntfs6 set root = (hd0, 1) # Because my windows is installed on the hard drive C, (hd0, 1) 7 chainloader + 18}
Solution 2: the system automatically checks whether other systems exist.
Grub2-mkconfig-o/boot/grub2/grub. cfg
Linux only supports Ext3/4 and fat32 formats. Grub2 cannot recognize partitions in NTFS format.
Other solutions: Enter PE to restore Windows mbr boot (of course, The Grub2 Boot of Centos 7 is gone), and then use easyBCD to add the Grub2 Boot of Centos 7 in Windows, however, this method seems quite troublesome. If you are a lazy patient, you don't want to go over it.