若误删系统内核文件,如何恢复?
(1)模拟实验环境
[root@localhost ~]# cd /boot/
[root@localhost boot]# ls
config-3.10.0-514.el7.x86_64
grub2
grub.cfg
initramfs-0-rescue-d6b8a8ebd9fa46a9907dd49de4c8bf65.img
initramfs-3.10.0-514.el7.x86_64.img
initramfs-3.10.0-514.el7.x86_64kdump.img
initrd-plymouth.img
symvers-3.10.0-514.el7.x86_64.gz
System.map-3.10.0-514.el7.x86_64
vmlinuz-0-rescue-d6b8a8ebd9fa46a9907dd49de4c8bf65
vmlinuz-3.10.0-514.el7.x86_64
##删除内核文件
[root@localhost boot]# rm -rf vmlinuz-3.10.0-514.el7.x86_64
(2)重启系统后会出现如下报错
(3)用光盘启动系统 (同恢复mbr引导程序)
(4)进入挽救模式 (同恢复mbr引导程序)
(5)恢复系统内核文件