Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Grub directory deleted by mistake or repaired by deletion

Shulou Source: shulou.com Published: 2022-06-01 08:10:15 11月26日 Update

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.

Tags: Select directory system mode content command file root red network part switch rescue generate Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Redmi Shulou Tech Info NVidia MariaDB