Deleted Initrd. Img and Vmlinuz

Running Ubuntu 22.04 LTS and I accidentally deleted initrd.img of ONE kernel and vmlinuz of the OTHER kernel. I can not boot the OS up, not even in recovery mode. How do I restore either initrd.img or vmlinuz of either kernels so I can boot up? I have a USB with a working Ubuntu live OS, it boots up fine. The harddrive is encrypted with LUKS too btw. All help greatly appreciated, I need to recover it ASAP for work. Thank you all.

3
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article