can't boot from any efi device and can't change bios menu - Lenovo y50-70
I had Ubuntu 17.10 and Windows 10 dual boot and were working normally, I formatted the laptop's hard disk outside the laptop and deleted all partitions and returned it back into the laptop...now when I open the laptop it shows me "Ubuntu boot failed"messageand when I continue it shows me "Windows boot manager boot failed"messageand after I continue it ends up at thisscreen
I tried to burn an iso of windows or linux on a usb or dvd and entered the boot menu it shows the boot from usb option but when I choose it I get boot failed message and the only working option is the "SATA HDD" and I think it works in legacy mode because if I make the bootable usb using rufus and choose gpt for uefi scheme it won't boot
I tried to change that from the bios menu but any change in the settings of the bios menu returns back after restarting the only change that stays is the clock and date
Any suggestions to how boot normally in UEFI without getting boot failed ?