A few months ago, a very brief power outage occurred while I was using Windows 10. It lasted less than a second and when I turned my computer on again, it booted into Ubuntu, which was installed on an old HDD that I rarely used, instead of my Windows SSD, which used to be the default boot option. I tried to manually boot into that SSD, but it was not listed as an option.
Browsing the contents of the SSD through Ubuntu is possible and all the files seem to be there. Gnome disks reports a bad sector, though I'm not sure if that happened before or after the power cut.
I thought that maybe the UEFI entry for Windows got somehow deleted and I tried to boot into a Windows installation USB, as well as a Windows recovery drive, to see if I can restore it from the command line, but they won't boot either. I toggled CSM support and secure boot on and off, I used different flash drives, I tried creating them with Rufus, Windows Installation Media Tool and also manually and tried both GPT and MBR options, but they never get past showing the Windows logo and/or loading animation, or a black screen, even after waiting for a long time. The flash drives boot normally on other other computers. Updating BIOS also didn't help and booting from a CD is not an option.
Linux live systems boot normally from USBs and Windows Installation USBs used to work in the past, too, as that's what I used to install Windows on the SSD.
Changing the SATA mode from AHCI to RAID made the Windows USBs boot, but my SSD was inaccessible. (And caused Ubuntu not to boot.)
I haven't tried transplanting the SSD to another computer to see if it boots, but I was wondering if I can find a solution to my problem before I do that. Any ideas?
System specifications:
PSU: Corsair RM750X (750 Watt, 2 years old, new)
SSD: Samsung 870EVO 500GB (Windows 10 is installed here. ~66% full)
Motherboard: B550 Aorus Pro V2
CPU: AMD Ryzen 9 5900x
Browsing the contents of the SSD through Ubuntu is possible and all the files seem to be there. Gnome disks reports a bad sector, though I'm not sure if that happened before or after the power cut.
I thought that maybe the UEFI entry for Windows got somehow deleted and I tried to boot into a Windows installation USB, as well as a Windows recovery drive, to see if I can restore it from the command line, but they won't boot either. I toggled CSM support and secure boot on and off, I used different flash drives, I tried creating them with Rufus, Windows Installation Media Tool and also manually and tried both GPT and MBR options, but they never get past showing the Windows logo and/or loading animation, or a black screen, even after waiting for a long time. The flash drives boot normally on other other computers. Updating BIOS also didn't help and booting from a CD is not an option.
Linux live systems boot normally from USBs and Windows Installation USBs used to work in the past, too, as that's what I used to install Windows on the SSD.
Changing the SATA mode from AHCI to RAID made the Windows USBs boot, but my SSD was inaccessible. (And caused Ubuntu not to boot.)
I haven't tried transplanting the SSD to another computer to see if it boots, but I was wondering if I can find a solution to my problem before I do that. Any ideas?
System specifications:
PSU: Corsair RM750X (750 Watt, 2 years old, new)
SSD: Samsung 870EVO 500GB (Windows 10 is installed here. ~66% full)
Motherboard: B550 Aorus Pro V2
CPU: AMD Ryzen 9 5900x
Last edited: