RHEL7 光盘修复

光盘修复
#rm -rf /boot/*
#dd if=/dev/zero of=/dev/sda bs=446 count=1
#systemctl reboot
Troubleshooting(排错模式)
选择Resuce a Red hat Enterprise Linux
continue
#chroot /mnt/sysimage
#mount /dev/cdrom /mnt/cdrom
#cd /mnt/Packages
#rpm -ivh /mnt/cdrom/Packages/kernel-3.1....... ----安装/boot分区
#grub2-install /dev/sda ----生成/boot/grub2目录。
#grub2-mkconfig -o /boot/grub2/grub.cfg ----生成/boot/grub2/grub.cfg配置文件
#exit
#exit #重启2次后完成修复进入系统

原文地址:https://www.cnblogs.com/rusking/p/7412392.html