windows8.1+centos7双系统(装完centos后无win8引导)

原先系统为windows8.1后来装上centos7后无win8系统引导,

打开电脑进入引导界面按C 进入grub界面  输入“cat (hd0,” 按tab可查看到windows8

地址为“hd0,msdos1”

进入centos7系统 --打开终端 --进入root

[johnnyhu@CentOS ~]$ su root
密码 :

进入编辑grub.cfg
[root@CentOS johnnyhu]# gedit /boot/grub2/grub.cfg

### BEGIN /etc/grub.d/10_linux ##
的文本下添加如下代码  保存重启
1
   

menuentry 'Windows8.1 Profession' {
      set root='hd0,msdos1'
      chainloader +1
}

原文地址:https://www.cnblogs.com/b422/p/4868426.html