OS版本为 RHEL 7
查看当前引导设备为/dev/sda
破坏MBR
执行 dd if=/dev/zero of=/dev/sda bs=446 count=1
重启系统
不能引导
使用光盘进入救援模式

进入troubleshooting

执行chroot命令,然后执行grub2-install命令
exit 退出chroot 否则出现报错 running in chroot ignoreing request
重新启动 shutdown -r 0
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27771627/viewspace-1226182/ ,如需转载,请注明出处,否则将追究法律责任。