Install CENTOS7 on the computer Windows7 system and cannot find the Windows7 boot menu after installation.
Reason: Because CentOS 7 has a new GRUB2 system, you need to use VI to edit the grub.cfg file after entering the/BOOT/GRUB2 directory.
Workaround One: Modify the GRUB2 boot of CentOS 7 to add the Windows startup entry
1 1.sudo VI/boot/grub2/grub.cfg2 2. Find # # begin/etc/grub.d/30_os-Prober # # #3 add at a later4Menuentry"Windows 7 (loader) (ON/DEV/SDA1)" {5 InsmodNTFS6Set root= (hd0,1) #由于我的windows安装在硬盘的C盘, therefore (hd0,1)7Chainloader +18}
Solution Two: System automatically detects if there are other systems
Linux can only recognize the EXT3/4,FAT32 format, and if Windows is an NTFS-formatted disk partition, GRUB2 will not be recognized.
Other solution: Into the PE recovery Windows MBR boot (of course, CentOS 7 Grub2 boot is gone), and then into Windows using EASYBCD add CentOS 7 Grub2 boot, but this method seems to be very troublesome, lazy disease committed, do not want to toss.
Unable to boot boot windows7 after installing CentOS workaround