How to recover "/boot/efi" partition

2

1

I'm using Fedora 25.

Last night I formatted /boot/efi partition(which is located in a separate partition /dev/sda1 500MB ) unintentionally!

After that I can't boot into Fedora!

How can I recover /boot/efi partition?

Hamed Kamrava

Posted 2017-01-07T04:54:13.843

Reputation: 175

Answers

1

https://wiki.debian.org/GrubEFIReinstall

This should help you

In a nutshell, run this in a Live CD or USB, and the program will regenerate /boot/efi and /boot/efi/grub to permit booting. Alternatively, you can run grub-install from a Live CD using this strip of code:

sudo grub-install /dev/sda1 (Or any other /dev location)

potatoman

Posted 2017-01-07T04:54:13.843

Reputation: 121