Windows 10 deleted GRUB [FIXED BY EXPERTS]
GRUB is a multiboot loader and an essential part of the Linux operating system, but some users on the Microsoft community and Linux forums have reported that Windows 10 has deleted their grub, thus leaving their Linux distribution unable to boot. If you are also troubled this issue, here are a couple of solutions that can help you resolve this problem.
How do I recover GRUB after installing Windows?
1. Run Boot Repair
- There are two ways to get boot-repair. First is to create a disk containing the tool like Boot-Repair-Disk. This will help you to create a disk starting Boot-Repair automatically and boot on it.
- The second option is to Install Boot-Repair in Ubuntu. To do this, create Ubuntu Live-session on your USB and then choose “Try Ubuntu“.
- Connect to the Internet.
- Open a new terminal, and type the following command. Press enter after running each command.
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
- Now you need to launch Boot-Repair by typing boot-repair in a terminal. You can also launch it from the Dash (Ubuntu logo at the top).
- Next, click the “Recommended Repair” button.
- Wait for the repair to finish. Note the URL that appeared on the screen.
- Now reboot the system and check if you can access the OS and GRUB is reinstalled.
2. Reinstall GRUB
- First, boot into your system using any Live Linux Distribution.
- Open Gnome Disks or GParted, the partition editor.
- Now find the partition where your Linux system is on. The Linux system is usually in /dev/sdax path (here X means number).
- Now close the Disk partition tool that is running (Gnome Disks or GParted).
- Open a terminal and run the following command and press Enter to execute it.
sudo mount /dev/sdaX /mnt && sudo mount –bind /dev /mnt/dev && sudo mount –bind /dev/pts /mnt/dev/pts && sudo mount –bind /proc /mnt/proc && sudo mount –bind /sys /mnt/sys && sudo chroot /mnt
- In the above command replace X with the disk number that you discovered in the step 3.
- Next, enter the following command and hit enter as well.
grub-install /dev/sda && update-grub && exit
udo umount /mnt/sys && sudo umount /mnt/proc && sudo umount /mnt/dev/pts && sudo umount /mnt/dev && sudo umount /mnt && reboot
- If everything goes right, this should reinstall GRUB. Reboot the computer and check if GRUB is re-installed successfully
By following any one of the methods above you should be able to fix the deleted GRUB issue. One thing to keep in mind is that if you want to dual boot on your system with Linux and Windows 10, always install Windows 10 first and then install Linux. This way Windows 10 won’t delete the GRUB by mistaking the EFI partition for its own.
RELATES STORIES YOU MAY LIKE:
- FIX: Windows 10 Ubuntu dual boot not working
- Boot Windows 7/8/10, Android & Linux (Ubuntu) With This Tablet
- Download and install Tails OS on Windows 10 PCs
Are you a software developer or programmer? Do you need a reliable Java bytecode interpreter? This article is especially for you. In this piece, we’ll […]
Browsers are essential tools for surfing the Internet. Also, the interface of any browser is crucial for providing a user-friendly experience. However, this feature is […]