CentOS7--rm -rf /boot/*
查看boot下面的所有内容
[root@localhost Desktop]# ls /boot/*
/boot/config-3.10.0-327.el7.x86_64 /boot/initramfs-3.10.0-327.el7.x86_64kdump.img /boot/System.map-3.10.0-327.el7.x86_64
/boot/initramfs-0-rescue-079fa89c5edb45acb20a66788875fc67.img /boot/initrd-plymouth.img /boot/vmlinuz-0-rescue-079fa89c5edb45acb20a66788875fc67
/boot/initramfs-3.10.0-327.el7.x86_64.img /boot/symvers-3.10.0-327.el7.x86_64.gz /boot/vmlinuz-3.10.0-327.el7.x86_64
/boot/grub:
splash.xpm.gz
/boot/grub2:
device.map fonts grub.cfg grubenv i386-pc locale themes
删除boot下面所有的内容
[root@localhost Desktop]# rm -rf /boot/*
[root@localhost Desktop]# ls /boot
[root@localhost Desktop]# cd /boot
[root@localhost boot]# ls
[root@localhost boot]# reboot
开机后进入到grub rescue
设置从光驱启动(已经挂载相应的光驱)
选择troubleshooting
选择rescue
按ENTER
选择1
重新安装kernel+grub
生成新的grub配置文件并重启