Article 4WQ6D How do I reinstall Grub and Efi (or Uefi) on my external HDD after I accidentally deleted the partition.

How do I reinstall Grub and Efi (or Uefi) on my external HDD after I accidentally deleted the partition.

by
Choklit
from LinuxQuestions.org on (#4WQ6D)
I run Ubuntu 18.04 dual-boot with Windows XP. I recently was trying to recover a sad USB drive using "Disks" and accidentally hit delete and wiped the partition containing Grub and whatever else needed to boot my PC.
I have been running this PC by starting from my ext HDD which gives me the option to start Ubuntu or Windows.
I would like to reinstall the files needed to start my PC without deleting all the other files on the Ext HDD.
I have taken a snapshot of the HDD shown by TestDisk and one Shown by G-parted if that is of any help in finding a solution. I will be deeply grateful for any help at all please.
Attached Files
pdf.gifScreenShot-USB-HDD.pdf (370.5 KB)
latest?d=yIl2AUoC8zA latest?i=xe2PdJM-sW8:RXViZslGQrQ:F7zBnMy latest?i=xe2PdJM-sW8:RXViZslGQrQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=xe2PdJM-sW8:RXViZslGQrQ:gIN9vFwxe2PdJM-sW8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments