Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
rated 0 times [  70] [ 0]  / answers: 1 / hits: 11792  / 2 Years ago, tue, august 2, 2022, 9:07:02

I am running Ubuntu 20.04, I accidentally deleted the EFI partition (Damn GParted!)
The system is still running. Can I create a new partition in the now UNUSED area, set the EFI flag and boot flag, and then just run update-grub?
Will update-grub repopulate the EFI partition? Can I DD the EFI partition from another Ubuntu install?

Quick replies,
Greatly Appreciated!

More From » boot


Thanks to ubfan1, I was able to repair and reboot. I followed these steps:

  1. Recreate a partition using GParted in the "unallocated" section created by deleting the original EFI partition.

  2. Select FAT32, manage flags and set the "boot" flag.

  3. Use blkid command to find the UUID of new partition.

  4. Edit /etc/fstab so that /boot/efi will be mounted using the new UUID.

  5. Mount /boot/efi.

  6. Copy all the files from /boot/efi of another Ubuntu machine to the new /boot/efi.

  7. Edit /boot/efi/EFI/ubuntu/grub.cfg to have UUID of root partition of machine being fixed.

  8. Pray to the Penguin God and reboot.

Everything is fine now.

[#772] Thursday, August 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 120
Total Questions: 126
Total Answers: 119

Location: Marshall Islands
Member since Wed, Feb 9, 2022
2 Years ago
gavgenerati questions
Wed, Jun 22, 22, 17:24, 2 Years ago
Fri, Jul 30, 21, 04:32, 3 Years ago
Fri, Jan 14, 22, 14:20, 2 Years ago
Tue, Jul 27, 21, 19:05, 3 Years ago