I just installed an Ubuntu 18.04 on the side of my windows 10 partition. after the install, every time I tried to boot to windows it always told me that winload.exe does not exist/is corrupted and windows can't boot.
Apparently grub has incorrectly assigned my second HDD as the windows 10 boot drive (/dev/sdc1
) instead of my SSD (SATA 0, partition 0)(/dev/sda0/
I think), that of telling windows to try to boot from there, and of course, it didn't work, as there are no windows there.
So how can I change it to point to the SSD instead?
also, a little clarifier :
I have 1 SSD and 2 HDD, formerly I only have 1 HDD, but I've since upgraded to an SSD and proceed to reinstall windows to the new SSD. I forgot if I ever did a full wipe on the former HDD, as there is still some leftover windows file (who knows if the MBR ever get wiped on that HDD)
I haven't yet tried to boot it from the windows boot manager option on bios, I guess I will try that later
edit : added the output from boot-info
after i see the boot-info output, there are something that i don't understand. like why grub told me in the grub menu that windows is on /dev/sdc3/ when clearly sdc3 is not even a thing on my computer.
and when i run the sudo update-grub command, the windows partition changes to sdc1, which is a thing, but still is the wrong HDD
Edit 2 :
I did the bootrec /fixmbr thing to try and restore windows bootloader into MBR. But sadly i still can't boot back to windows, let alone ubuntu. And as i dont have much time, i just reinstalled the whole thing.
Thank you very much for everyone bothering to answer. I hope your answer will be beneficial for someone else