How do I restore my Windows EFI partition after accidentally deleting it while installing Debian?

0
9
Asked By CuriousCat42 On

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

Answered By TechieGuy88 On

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.

Answered By HelpMePlz On

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.

Answered By NewbieExplainer On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.