uefi – Cannot boot Ubuntu in a dual boot

I have a dual boot config Windows 11 + Ubuntu 24.10, with secure boot enabled. Recently I cannot boot in Ubuntu. First, I hat the error:
Failed to open \EFI\ubuntu\grubx64.efi – Volume Corrupt
Failed to load image \EFI\ubuntu\grubx64.efi – Volume Corrupt
start_image() returned Volume Corrupt

I booted form an USB drive, I executed a file fsck and fixed the efi partition and then I copied 2 files from the usb on my drive: grubx64.efi and another .efi file.

Now my error is

Invalid image
Failed to read header: Invalid Parameter
Failed to load images: Invalid Parameter
start_img() returned Invalid Parameter

More details here: paste.ubuntu.com/p/xtPF5RNwsZ/

Thank you

Read more here: Source link