Linux learning --- repair grub

Source: Internet
Author: User
Linux learning --- repair grub-general Linux technology-Linux technology and application information. The following is a detailed description. Two days ago, windows was reinstalled because of a problem with lv. The original windows is installed on the C drive, and linux is installed on the original D drive partition. During the reinstallation, the C drive is formatted, because the original system boot is guided by grub, the C drive is formatted, which is equivalent to modifying grub and cannot enter the startup management item during installation.

Perform the fdisk/mbr operation, delete the mbr, And put windows into the optical drive. Finally, the installation page is displayed, and windows is successfully installed. However, after installation, you cannot access linux. To restore grub, you must take out the first installation disk of linux and put it into the optical drive (started from the optical drive by default ). Wait for the linux installation interface. When the boot prompt appears, press F5 and enter linux rescue to enter the repair mode.

The following is a series of simple configurations, including the language, keyboard, and network configuration. The characters such as sh # will appear later. In this case, you can operate grub. Enter grub, and the grub> prompt appears. Enter the following after such a character:
QUOTE:
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.