CentOS 7 How to fix MBR boot sector with GRUB

Two, grub menu resume
preparations: Analog fault grub menu
CentOS 7 How to fix MBR boot sector with GRUB

grub menu configuration file is deleted again after restarting the server will be shown below, which can not start properly.
CentOS 7 How to fix MBR boot sector with GRUB
After the server restart, after a few steps with the same MBR sector recovery operations until entering the emergency mode command.
1, the guide rescue mode, the mirroring system load
command: CHROOT / mnt / sysimage /
CentOS 7 How to fix MBR boot sector with GRUB
2, to re-establish the partition sda load
command: the install-grub2 / dev / sda
CentOS 7 How to fix MBR boot sector with GRUB
. 3, rebuild grub profile menu
command: grub2-mkconfig -o / boot /grub2/grub.cfg
CentOS 7 How to fix MBR boot sector with GRUB
4, after exiting the bash mode to restart the server to verify whether the normal boot
exit
reboot
CentOS 7 How to fix MBR boot sector with GRUB
CentOS 7 How to fix MBR boot sector with GRUB

Guess you like

Origin www.linuxidc.com/Linux/2019-08/160364.htm