From the presence of the grub rescue prompt it appears that your machine also had a Linux distribution installed along with a prior version of Windows from which you tried to update to Win 10. I suggest you address this issue to the support forums
related to the Linux distro that was installed. You might get a better response in connection with issues related to grub, dual booting and problems experienced with dual boot systems in the upgrade process