Home 0P3N Blog Restoring GRUB After Installing Windows
Ready to Start Your Career?
Create Free Account
doctorX s profile image
By: doctorX
September 21, 2016

Restoring GRUB After Installing Windows

By: doctorX
September 21, 2016
doctorX s profile image
By: doctorX
September 21, 2016
Hi Cybrarian! Today I'm gonna share with you 3 ways to restore GRUB boot-loader after losing it when you decided to dual boot windows with Linux. The reason for this problem is that windows doesn't recognize neighboring systems, and it's a common problem. Now I will show you how to restore this by using 3 methods:

  1. live CD or live USB
  2. by EasyBCD
  3. by boot-repair
First (1st) method: by using live CD or live USB

1. Burn the distribution on CD or Flash storage (USB).
2. Boot it in test (try without install).
3. Open terminal and write or copy this command to show your Disk:

sudo fdisk -l

4. Find the installed Linux partitions, often you'll find next to it "EXT"
5. Copy this command and replace sda3 with what commensurate with your condition:

sudo mount /dev/sda3 /mnt
 
6. Then copy this command to do mount:

sudo mount --bind /dev /mnt/dev
 
7. Next:

sudo chroot /mnt
 
8. Copy this command to install GRUB:

grub-install /dev/sda
 
9. Finally copy this command to update GRUB:

sudo update-grub
 
10. Finished.

Second (2nd) method: by Using EasyBCD on Windows

1. Download it from this link
2. Run the program then go for this steps:

- Add new entry - Linux/BSD
- From Type choose: Linux(GRUB) or you can choose (GRUB 2)
- From name choose the name you want for the system.
- From drive choose the partition where you installed Linux
- Finally  click "Add Entry".


And this program has many features like using METRO screen and choose the time for booting etc.

Third (3rd) Method: by using Boot-Repair

-This is the easiest way to repair your boot screen.


- For windows all you have to do is download the program and run it.
- For linux open terminal and type or copy:

sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install boot-repair

And to run:

boot-repair
 
Finally form the screen choose "recommended repair"

I hope this was helpful to you. I'll be happy to hear form you, feel free! Hearten me with cybytes!
Schedule Demo

Build your Cybersecurity or IT Career

Accelerate in your role, earn new certifications, and develop cutting-edge skills using the fastest growing catalog in the industry