On Windows 11 machine I have a 1TB SSD(D drive) which I used to boot Windows and it has an EFI partition. Last year, I purchased a 2TB SSD(C drive), installed Windows on it and migrated data as a primary drive.
So, I was trying to clean up some space on my D drive, and I stupidly formatted it without checking what was on it. Turns out, it had the efi partition that Windows 11 needs to boot, and my C drive doesn’t have an EFI partition or a recovery partition. Now, when I turn on my PC, it just shows me a black screen.
I followed some instructions online, installed Windows Media Creation Tool on my USB memory, and used the diskpart command to create a new partition on my C drive, which has the OS. Then, I tried to use the bcdboot command to copy the boot files to the new partition, but it gave me an error saying “Failure when attempting to copy boot files” and did nothing.
Is there any way to fix this without reinstalling windows? I don’t want to lose all my data and settings. Please help me,