centos安装后重启显示grub rescue无法进入windows,怎么办

如题所述

1、进入援救模式,查看你的的c盘分布在哪一块硬盘上面

如:grub >ls      //就会列出你电脑上面的磁盘分配情况,你可以一个一个的查看

我的c盘对应 (hd0,1)

2、然后修改/etc/grub.d/40_custom文件

[html] view plain copy
 #!/bin/sh  
exec tail -n +3 $0  
# This file provides an easy way to add custom menu entries. Simply type the  
# menu entries you want to add after this comment. Be careful not to change  
# the 'exec tail' line above.  
menuentry 'windows 7 ultimate'{  
set root=(hd0,1)  
chainloader +1  
boot  
}

3、# grub2-mkconfig -o /boot/grub2/grub.cfg

4、重启

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答