1 模拟问题,删除boot目录
[root@localhost ~]# rm -fr /boot
rm: cannot remove ‘/boot’: Device or resource busy
[root@localhost ~]# ls
anaconda-ks.cfg Documents initial-setup-ks.cfg Pictures Templates
Desktop Downloads Music Public Videos
[root@localhost ~]# cd /boot/
[root@localhost boot]# ls
[root@localhost boot]# reboot
2 重启系统,出现以下界面
3 强制关闭系统,进入挽救模式
4 挂载光驱文件
mount /dev/cdrom /opt
5 grub2-install /dev/sda ##安装设备 fdisk -l 查看到的*在哪写哪