Restoring GRUB After Installing Windows

September 21, 2016 | Views: 57327

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

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!

Share with Friends
FacebookTwitterLinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterLinkedInEmail
Ready to share your knowledge and expertise?
11 Comments
  1. I had windows 7 on C drive and Linux on E drive. After I formated C and installed windows 10 I cannot use Linux on E drive. I guess is that GRUB loader is deleted. Will this tutorial be helpful in my case and help me access Linux also beside my windows 10? Any help appreciated

Page 2 of 2«12
Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge

 

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel