Repair Linux Boot in rescue mode of GRUB

Source: Internet
Author: User

Today in the Windows 10 system received the System update notification, did not see clearly personal overdraft the point of the update immediately. Thought just like those regular updates restart the update is over, never thought that this is an overwrite update, that is, this is a new system update instead of the system patches. In the process of installation I was in the heart of meditation "finished, this installation completed Linux system boot must be manually repaired." ", and sure enough, the default is to start booting with Windows, and the F2 setting switches to Deepin Linux boot and still fails to boot Linux normally. To fix this problem is not complicated, the following article records the whole process of repairing the boot.

Error message
file ' /boot/grub/x86_64-efi/normal.mod ' Not found. Entering Rescue Mode...grub Rescue> _

Enter the system

As can be seen from the error message, the problem occurs when grub cannot find the file Normal.mod, what we do now is to set the boot partition and grub file path of Linux through Grub's rescue terminal and reboot the system.

    • Find the partition where the system boot is located:

List all partitions with the LS command

ls ( hd0) (HD1) (Hd1,gpt8) ....

Depending on your own memory, it is possible to locate the partition where the system is booting (if you do not remember that you can only try each one) and use LS to locate the boot partition (output contains boot/)

As you can see (HD1,GPT7) is the partition we are looking for:

ls (HD1,GPT6)/. / .. /lost+found/Grub Rescuels (hd1,gpt7)/. / .. /lost+found/bin/boot/dev/...
    • Configuring GRUB Boot
Grub Rescue> Set root=(HD1,GPT7) grub Rescue> Set prefix= (hd1,gpt7)/boot/Grub
    • Switch to normal mode
Insmod Normalgrub Rescue> Normal

If the above settings are correct, you can enter the Grub menu of the system normally.

Reinstall Grub

After normal entry into the system, if you do not first repair grub boot, after restarting the computer will still enter just that rescue mode.

    • Find your EFI partition mount point

Run the DF command:

Df

As you can see, the EFI mount point is:/dev/sdb2

    • Reinstall Grub

To install grub with the Grub-install command:

If you are not prompted to find a command, try adding your/usr/sbin to the environment variable path:

Open: Vim/etc/profile

Add: Export path= $PATH:/usr/sbin

Application configuration: Source/etc/profile

sudo grub-install /dev/sdb2

If you get the following output, congratulations on the successful installation of GRUB!

Repair Linux Boot in rescue mode of GRUB

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.