Solution to the Win7 of CentOS under the boot Item vanishing method
After installing CentOS 7, the original Windows 7 will not appear in the Startup project, the solution is to modify the Grub.cfg file after the online search. Because CentOS 7 has a new GRUB2 system, you need to edit the grub.cfg file using VI (or nano) after entering the/BOOT/GRUB2 directory. :
Declare the following Windows 7 Startup item:
Menuentry ' Windows 7 (loader) (on/dev/sda1) ' {
set root= (hd0,1)
Chainloader + 1
}
Add in # # # End/etc/grub.d/00_header # # #之后.
After this modification, the Windows 7 startup item can be seen after restarting, and can also successfully enter Windows 7
Description: Set root= (hd0,1) where hd0 represents the hard drive, 1 is the C drive, my Win7 is in C drive, so it is 1.
This article is from the "Beloved Linux" blog, so be sure to keep this source http://mpflinux.blog.51cto.com/12173924/1945603
Resolves an issue where Windows Startup items disappear when installing CENTOS7 dual system on Windows7