Today, the notebook's Windows 7 boot was finally made, and there were some problems, so write a document to record.
There was a problem that Windows 7 could not start because CentOS was installed first. The solution to the problem has been found on the Internet, and a series of problems have arisen according to the plan
No Windows Startup items need to be modified/boot/grub2/grub.cfg
Enter sudo vi/boot/grub2/grub.cfg on the command line
In# # # begin/etc/grub.d/30_os-prober # # # add below
Menuentry ' Windows 7 (loader) (on/dev/sda1) ' {
insmod NTFS
set root= (hd0,1) #因为将Windows 7 is installed on the first partition of the hard disk, so write 1;
Chainloader +1
}
# # # end/etc/grub.d/30_os-prober # #
After you have entered the above code, restart the computer, found that the Windows 7 boot entry, click Enter, there is a problem
variable "root" isn ' t set
Please no key to continue
This problem occurs when I start the solution is to delete the file set root this line, a bit of a problem occurred
Invalid signature
Please no key to continue
The result is that the set root line is still needed, and then continue to find ways to find that some of the solutions are written differently.
Set root = (HD0,MSDOS1)
Therefore, the Windows 7 system can run correctly after the row is changed.
Of course, there are several other methods on the Internet, which are not used. According to the actual situation, improvise
This article is from the "Learn Diary of Linux" blog, please be sure to keep this source http://3378084.blog.51cto.com/3368084/1828631
Windows 7 system boot issues under CentOS