I was using ubuntu 18 with windows 10. When I tried to boot ubuntu one day, the GRUB menu disappeared and GRUB command line was displayed. I tried to solve this but always got an error - failure reading sector, so I decided to delete the ubuntu partition from windows and then reinstall ubuntu. Now when I am trying to reinstall, the ubuntu installer does not detect windows OS and only gives Erase disk and install ubuntu option. I created the bootable usb from rufus with GPT partition scheme for UEFI target system. I make my own partition scheme by clicking on 'Something else' as suggested in some tutorials. The installer crashes with following message:
Executing 'grub-install/dev/sda' failed. This is a fatal error.
When I open Gparted from ubuntu live usb I get an Error.
After I click ignore for a few times Gparted opens and shows 2 ESP with boot flag.
I am able to use windows without any problem. When I run SMART check on my disk using crystaldiskinfo, I get a caution.
I have already disabled secure boot, fast boot and enabled legacy boot from BIOS menu.
I have no idea how to proceed now. Please help.
sudo fsck.vfat -t -a /dev/sda1
But make sure Windows fast start up is off, Windows will turn on with updates, which you may not see. – oldfred Apr 25 '20 at 14:07