How to fix grub rescue after an error occurs in Linux Installation

Source: Internet
Author: User

How to fix grub rescue after a Linux installation error occurs: 1. Run the ls command to find the partition where the Linux Installation File is located: grub rescue> ls to list all disk partitions, for example: (hd0, 1), (hd0, 5), (hd0, 3), (hd0, 2) 2. then, call the following command in sequence: X indicates the number of each partition, grub rescue> ls (hd0, X). If no partition number is found, check whether the Linux version is different, the grub path is incorrect. 3. If the file in the folder is displayed when (hd0, 5) is found, it indicates that Linux is installed in this partition. 4. call the following command: grub rescue> set root = (hd0, 5) grub rescue> set prefix = (hd0, 5)/boot/grub rescue> insmod normal 5. (After successful, the color of the grub rescue font will change.) then, call the following command to display the lost grub menu. Grub rescue> normal if not, change some commands to the following format: grub rescue> ls (hd0, X)/boot/grub rescue> set root = (hd0, 5) grub rescue> set prefix = (hd0, 5)/boot/grub rescue> insmod/boot/grub/normal. mod

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.