After Windows 10 is updated, the grub rescue problem occurs when the boot fails on both systems (Linux & Windows ).

Source: Internet
Author: User

After Windows 10 is updated, the grub rescue problem occurs when the boot fails on both systems (Linux and Windows). How can this problem be solved?

Updating Windows 10 may damage grub, so that grub boot files cannot be found, so we need to find the boot file.

When grub resume> is displayed.

1. Run the set command to check which disk the grub boot points.

Grub resume> set

Display results, for example,

Export Path = (hd0, gtp2)/EFI/parrot

Prefix = (hd0, gpt10)/boot/grub

Root = hd0, gtp10

The above results indicate that the current Boot points to the gpt10 partition of the first hard disk (hd0.

2. Run the ls command to view disk partitions.

Grub resume> ls

Display results, for example,

/.../Lost + found/boot/etc/media /............

Then we need to find the actual location of the boot file.

Use ls (hd0, gtp1)/one by one. When grub appears in the path, the correct boot partition is found.

You can also use ls (hd0, gtp6)/boot/grub to view details.

3. Use the Set command to Set the root and prefix values for the grub path you have found.

Grub resume> set root = hd0, gtp6

Grub resume> set profix = (hd0, gtp6)/boot/grub

Run the set command to check whether the settings have been set.

Grub resume> set

4. Return to the grub startup interface.

Enter insmod normal, press enter, and then enter normal

5. If you can enter linux at this time, please jump to 6. If not, please look down...

Enter the command line mode in c on the grub interface.

Set root = (hd0, gpt6)

Set prefix = (hd0, gpt6)

Gpt6 indicates the correct boot partition you have found.

6. Start linux, open the terminal, and enter

Sudo update-grub

Sudo grub-install/dev/sda

Sda refers to your first disk (for example, a represents the first disk B represents the second disk, and sda1 represents the second partition of the first disk .)

If not, run the ls/dev/sd * command to view the disk information.

7. At this point, the problem should have been resolved.

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.