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.