pls see attached text file for a detailed solution for your problem.

-With Thanks & Regards

 Tanzeem M.B
 <Programmer/>



On 30 April 2017 at 11:35, Roopesh Sivam <[email protected]> wrote:

> https://neosmart.net/EasyBCD/
> didi you try this. If you can login to windows or linux, install and try
> this.
>
>
>
> On Sat, Apr 29, 2017 at 9:00 PM, Pirate Praveen <[email protected]>
> wrote:
>
>> I suggest you ask on #gnulinuxlovers:matrix.org on matrix or
>> #gnulinuxlovers on freenode irc They have 100% success in GNU/Linux
>> installatiom
>>
>> On 2017, ഏപ്രിൽ 27 3:25:28 PM IST, Jemshid KK <[email protected]>
>> wrote:
>>>
>>> Hi
>>> A friend of mine is in Trivandrum and he has difficulty in re-installing
>>> grub after Windows 10 installation. Can anybody give a hand?
>>>
>>> Jemshid
>>> --
>>> Jemshid KK | Applied Mathematician | +91 9349101566
>>> <+91%2093491%2001566>
>>>
>>>
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>
>> --
>> --
>> "Freedom is the only law".
>> "Freedom Unplugged"
>> http://www.ilug-tvm.org
>>
>> You received this message because you are subscribed to the Google
>> Groups "ilug-tvm" group.
>> To control your subscription visit http://groups.google.co.in/gro
>> up/ilug-tvm/subscribe
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>>
>>
>>
>> For details visit the google group page: http://groups.google.com/group
>> /ilug-tvm?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Free Software Users Group, Thiruvananthapuram" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> --
> "Freedom is the only law".
> "Freedom Unplugged"
> http://www.ilug-tvm.org
>
> You received this message because you are subscribed to the Google
> Groups "ilug-tvm" group.
> To control your subscription visit http://groups.google.co.in/
> group/ilug-tvm/subscribe
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
>
>
>
> For details visit the google group page: http://groups.google.com/
> group/ilug-tvm?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Free Software Users Group, Thiruvananthapuram" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To control your subscription visit 
http://groups.google.co.in/group/ilug-tvm/subscribe
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]



For details visit the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Free 
Software Users Group,  Thiruvananthapuram" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
Windows will overwrite the boot sector whenever you install it. 
In general install windows first then linux. 
You can repair the grub by booting from a live disk of linux  
and there should be an option to repair-boot, which will repair your grub.
Restart it and now you should be able to see both the OS.

Or you can boot from a live cd and perform the following steps:

    Boot from a live CD (CD/DVD or flash drive).
    Become root or use sudo with commands below.
    List the available partitions if needed: fdisk -l
    Windows will almost certainly exist on /dev/sda1: mount /dev/sda1 /mnt
    Reinstall GRUB in the MBR: grub-install --root-directory=/mnt/ /dev/sda
    Reboot: shutdown -r now
    Restore the GRUB menu: update-grub

Best solution
============
https://askubuntu.com/questions/655011/windows-10-upgrade-kills-grub-and-boot-repair-doesnt-help
https://askubuntu.com/questions/88384/how-can-i-repair-grub-how-to-get-ubuntu-back-after-installing-windows

Essentially the steps are : 
1. Using Ubuntu Live to boot in 'Try Ubuntu' mode. 
2. Use GParted to verify the correct linux partition (e.g. /dev/sda2 ). 
3. Mount the linux partition :

sudo mount /dev/sda2 /mnt  #Replace sda2 with your partition number

4. Mount all other linux system folders :

for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done

5. chroot into your install

sudo chroot /mnt

6. Now that you are logged in your installation (not the Ubuntu Live) just do

update-grub
grub-install /dev/sda
update-grub
exit
sudo reboot



More detailed steps
-------------------
First live boot to your Linux system, using external Live CD/USB Drive, then 
follow these commands to re-install GRUB on MBR.

    mount your Linux installed partition to some mount point. here XY is the 
number of your Linux distro partition.

    sudo mount <root-partition[e.g. /dev/sdaXY]> <mount-point[e.g. /mnt/]>

    Now bind some essential live root partition directories to mounted root 
partition at /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

    Now, change the root to newly mounted partition directory.

    sudo chroot <mount-point[e.g. /mnt/]>

    Now, install the GRUB using grub-install command at your HDD MBR.

    grub-install /dev/sda

    Finally update the grub entries to show newly detected partition operating 
systems.

    update-grub

    And at last unmount all the binded partition directories, and then reboot.

    sudo reboot
Option3
=======
 run this in Windows as an administrator:

bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

Grub appears fine on boot and I can boot into GNU/Linux and Windows 10 fine.



https://www.cybrary.it/0p3n/restoring-grub-installing-windows/
https://itsfoss.com/no-grub-windows-linux/
https://askubuntu.com/questions/655825/restoring-grub-launcher-after-windows-10

Reply via email to