Here is another case where running dosfsck -a on the "Input/Output error" ESP failed (see line 1015 to 1021):
dosfsck -a /dev/sda2 Unable to create unique name dosfsck 3.0.14, 23 Jan 2023, FAT32, LFN There are differences between boot sector and its backup. Differences: (offset:original/backup) 5:44/57, 6:4f/49, 7:53/4e, 8:35/34, 10:30/31, 14:fe/28, 15:1b/00, 36:01/08 Not automatically fixing this. ** Attachment added: "BootInfo with dosfsck" https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1090829/+attachment/3827816/+files/BootInfo%20with%20dosfsck -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1090829 Title: grub-efi fails to install with Input/output error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/1090829/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs