CentOS7删引导目录玩

  

CentOS7删引导目录玩

  

grub2-install可以恢复stage1-stage2阶段

  
<强>一、删了/boot h5> [root@localhost ~] # rm/引导射频

  
二,起不来了
  

grub,启动的img镜像都没了

  

 CentOS7删引导目录玩

  
三,光盘救援h5> 参考:https://blog.51cto.com/14012942/2426097

  
 <代码类=" language-bash "> sh - 4.2 # chroot/mnt/sysimage #切根
  bash - 4.2 #/dev/cdrom/mnt山#
  bash - 4.2 # rpm -ivh/mnt/包/内核el7.x86_64——3.10.0 - 957.。rpm #安装内核
  bash - 4.2 #/sda grub2-install #可以恢复stag1-stage2阶段
  bash - 4.2 # grub2-mkconfig - o/boot/grub grub2。cfg #生成grub.cfg
  bash - 4.2 #同步 
  

 CentOS7删引导目录玩

  

& lt;字体颜色=red> <强>看一下内核- 3.10.0 - 957. - el7.x86_64.rpm在引导目录生成的文件 & lt;/font>

  
 <代码类=" language-bash "> [root@localhost ~] # rpm ql内核el7——3.10.0 - 957.。x86_64 | grep ^/boot/boot/.vmlinuz el7.x86_64.hmac——3.10.0 - 957./boot/system.map el7.x86_64——3.10.0 - 957./boot/config - 3.10.0 el7.x86_64——957./boot/initramfs el7.x86_64.img——3.10.0 - 957./boot/symvers el7.x86_64.gz——3.10.0 - 957./boot/vmlinuz - 3.10.0 957. - el7.x86_64  

CentOS7删引导目录玩