Many of us would have faced problem of loosing linux grub/bootloader in multiboot system of Windows+Linux after formatting the windows partition.Ina multiboot system , whenever we format system which was installed first we loose the boot option of the other operating system, here is the simple solution of recovering the linux boot option back without formatting again the linux partition
You Will Need :
1. Your current Linux’s LIVE installation DISK.
2.Free 5 min of time 🙂
Ok after booting Linux LIVE disk open terminal and,
sudo fdisk -l
it’ll give you list of all disk partition ,so you can find in which partition linux is insatalled .
(in my case it’s ‘sda7’)
sudo mount /dev/sda7 /mnt
This will mount partition having linux.
sudo grub-install --root-directory=/mnt/ /dev/sda
Now This’ll install GRUB back.
If You have done it in correct way , you’ll get multiboot option back, so remove disk and reboot again ,ENJOY…:)
THIS IS HOW IT SHOULD LOOK.
4.TO update grub (OPTIONAL) reboot device in linux and TYPE command:
sudo update-grub You Are Done Now ..