To fix various PC problems, we recommend this tool: This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:
- Download this PC Repair Tool rated Great on TrustPilot.com.
- Click Start Scan to find Windows issues that could be causing PC problems.
- Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).
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