Fix GRUB boot failure recovery in Linux system
GRUB is the default boot program used by most Linux systems. You can choose to enter different operating systems (if any) through the boot menu. When the "/boot/grub2/grub.conf" configuration file is missing, or the key configuration is wrong, or the boot program in the MBR record is damaged, the Linux host may only display the "grub>" prompt after booting. Complete the further system startup process. As shown in the figure:
Put the system CD into the CD-ROM drive and restart the Linux system. When the system starts, press the "F2" key, enter "linuxrescue" at the "boot:" prompt and then "Enter" to enter the Linux system in the "emergency mode" boot CD.
Enter emergency mode
1
- Boot emergency mode, load system image
chroot /mnt/sysimage/
- Re-establish the load sda partition
grub2-install /dev/sda
- Rebuild the gmb menu configuration file
grub2-mkconfig -o /boot/grub2/grub.cfg
- Exit the bash environment, restart
exit
reboot,
put the hard disk in the first place,
start the system