1、备份MBR、破坏MBR,GRUB STAGE1
[root@HFJ ~]# dd if=/dev/sda of=/boot/mbr.bak count=1 bs=512
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00269777 s, 190 kB/s
[root@HFJ ~]# dd if=/dev/zero of=/dev/sda count=1 bs=200
1+0 records in
1+0 records out
200 bytes (200 B) copied, 0.00562905 s, 35.5 kB/s
2、reboot
[root@HFJ ~]# shutdown -r 0
Broadcast message from root@HFJ
(/dev/pts/0) at 10:00 ...
The system is going down for reboot NOW!
3、使用系统安装光盘修复mbr和grub
选择rescue installed system
修复命
注意:grub安装的对象是磁盘不是分区,截图给的是分区,需要的是根分区所在的磁盘sda
开始修复
已完成修复