模拟grub菜单故障

cp /boot/grub/grub.conf /hehe/ 备份grub 配置文件到呵呵
rm -rf /boot/grub/grub.conf  删除grub菜单文件

重启进入光盘急救模式

进入shell模式。这里就不多说了。跟恢复MBR进入shell模式步骤一样

chroot /mnt/sysimage			//切换到原系统环境
cp /hehe/grub.conf /boot/grub/   从备份文件恢复到/boot/grub/

reboot 重启




猜你喜欢

转载自blog.csdn.net/qq_39336574/article/details/80664037