I have a setup where Windows is installed on an NVME solid state drive and Debian Linux is installed on a separate SATA hard drive. Unfortunately, while installing Debian, I accidentally deleted my Windows EFI partition, which is preventing Windows from booting. Right now, I can only access Debian. I ran `sudo fdisk -l` and it shows that the EFI partition has been moved to the Linux drive. I'm looking for a way to restore the EFI partition so that I can boot into Windows again. What should I do?
3 Answers
One option is to boot from a Windows installation ISO and use the repair feature. You usually need an EFI partition on each drive. Just be careful not to mix them up when reinstalling or repairing the partitions.
Check if the previous EFI partition is still there. It's strange that the Linux installer would completely erase it. If it's missing, make sure to look at the layout of your current partitions. You might not have a FAT32 partition on your Windows drive anymore. Another method is to use a Windows recovery USB; it might help fix the issue.
If you can boot into GRUB, it sounds like there's still an EFI partition somewhere. You may not see it directly, but it might be there. You could copy the EFI files from an existing Windows setup if you have access to another computer. Just be careful with where you place them!

Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux