Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Grub directory deleted by mistake or repaired by deletion

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report