I am quite new to Ubuntu and I have a problem. I have an Acer Aspire E5-573-P5AB and I had Windows 10 installed on it first. Then I installed Ubuntu 16.04 or 16.10 LTS. I can't remember which one.
Since I upgraded Ubuntu to 17.10, Grub decided to try booting Windows 10 from /dev/sda1, which is the recovery partition of Windows 10 instead of /dev/sda2, which is the main partition of Windows 10, and when I try to boot into Windows 10 I see the background color of grub and some glitchy lines on the screen, and then the laptop restarts in grub.
In order to boot in Windows 10 from grub, I have to highlight Windows 10 on Grub boot screen and edit the command to change hd0,msdos1 to hd0,msdos2. This is very annoying!
Also note that I used sudo update-grub several times and it still detects Windows 10 on /dev/sda1 instead of /dev/sda2. Can anybody help me? I am new and I don't know what to do! Also note that both OSes are installed in BIOS, not UEFI.
Here's my pastebin from Boot Repair