Grub directory deleted by mistake or repaired by deletion
Grub directory deleted by mistake or repaired by deletion
1. Enter the rescue mode
2. Select the default OK
3. Select the default OK
4. Select NO and do not create a network.
5. Select Continue to continue
6. Select the default OK
7. Select the default OK
8. Choose to enable shell Start shell OK
9. Use chroot / mnt/sysp_w_picpath/ to change to the root directory
Install to the / dev/sda directory using grub-install
Use ls to see if the grub directory has been generated
10. Finally, exit and restart the system.
11. After rebooting the system, go directly to grub editing mode and execute the four commands shown below. Pay attention to the red part.
12. After rebooting and entering the system, edit the vim / boot/grub/grub.conf file and add the following 6 lines to complete the modification.