We are going to show you how to repair grub after grub rescue error. If you have installed Linux together with Windows on your computer and then deleted the Linux partition, you will probably encounter this problem when trying to boot Windows. This error indicates that the Linux boot loader (grub) cannot find the partition where it was installed and cannot load the operating system. To fix this error, there are several options you can try. Let's see how to solve this problem in a simpler way:
Tutorial to repair this Windows error using WinGrub
A way to repair grub from Windows is using WinGrub, WinGrub, a free program that allows you to restore it quickly and easily without using a bootable disk or USB. To use WinGrub, you must follow these steps:
- Download WinGrub from its official website and run it as administrator.
- Select the “Restore Grub” option and click “Next”.
- Choose the drive where Windows is installed (usually C:) and click “Next”.
- Wait for the program to find and restore the grub on your hard disk.
- Restart your computer and check if you can access Windows normally.


How to repair grub with a USB or a Windows DVD
Another way to repair the grub is to use a USB or Windows boot DVD. To do this it is important to have a copy of the operating system you want to use (Windows 7, 8 or 10) on a USB stick or a DVD. If you don't have it, you can download it from Microsoft's official website and create a bootable media with a tool like Rufus. Once you have your Windows USB or DVD, you must follow these steps:
- Insert your USB or Windows DVD into your computer and reboot it.
- Configure the BIOS to boot from USB or DVD. You must press a key such as F2, F10 or F12 when turning on the computer and choose the corresponding option.
- When the Windows installation screen appears, select the language, time format and keyboard, and click “Next”.
- In the lower left corner, click on “Repair equipment”.
- Choose the option “Troubleshoot problems” and then “Advanced options”.
- Click on “Command Prompt” and type the following commands, pressing Enter after each one:
bootrec /fixmbr bootrec /fixboot bootrec /rebuildbcd
- Close the command prompt window and restart your computer.
- Check if you can access Windows normally.
How to repair grub with a Linux LiveCD or LiveUSB
The last option we propose to solve this problem, is by using a Linux LiveCD or Linux LiveUSB. To do this, you need to have a distribution of Linux you want to use (Ubuntu, Mint, Debian, etc.) on a CD or USB. If you don't have it, you can download it from its official website and create a bootable media with a tool like Etcher. Once you have your Linux CD or USB, follow these instructions:
- Insert your Linux CD or USB into your computer and reboot it.
- Set the BIOS to boot from CD or USB. Press a key such as F2, F10 or F12 when turning on the computer and choose the corresponding option.
- When the Linux startup screen appears, select the option “Try Linux without installing” or similar.
- Open a terminal and type the following commands, pressing Enter after each one:
sudo fdisk -l sudo mount /dev/sdXY /mnt sudo grub-install --root- directory=/mnt /dev/sdX sudo update-grub
Note: In the above commands, you must replace X with the letter corresponding to the hard disk where Windows is installed (usually a) and Y with the number corresponding to the partition where Windows is installed (usually 1). You can find out this data with the command fdisk -l.
- Close the terminal and restart your computer.
- Check if you can access Windows normally.


Conclusion
In this article I have shown you how to repair grub after grub rescue error when removing Linux. I hope you found it useful and that you were able to solve your problem. If you have any questions or comments, you can leave them below. And if you liked this article, share it with your friends and subscribe to my blog to receive more tips.
Image: Pixabay




