Is there any free utility that can run in Linux which helps one rebuild a corrupted boot configuration?
I have a disk which is currently out of it's usual place as the boot drive for a debian system. The past two times that Buster updated grub, the drive became unbootable after the update. The drive, itself appears to be perfectly good and I think the problem which makes the update kill the drive is related to a dd copy I made some years ago of one drive to another so most of what is there is normal. After the second killing of the drive, I started to determine what is misguiding update-initramfs as grub-install seems to produce a grub.cfg file that is looking for all the right UUID's but when the system boots, grub now fails by trying to find a UUID that must have belonged to a now deceased system as it no longer appears in the fstab of either the newly-dead system or another system which is alive and well and being used to try to revive the injured drive. Everything needed to produce a valid boot is there if only I can run something that will reconstitude the boot image so that it looks for the right UUID's. I do remember seeing this message as the update ripped through the new grub: update-initramfs: Generating /boot/initrd.img-4.19.0-5-686-pae W: initramfs-tools configuration sets RESUME=UUID=6f6f4373-45a3-4c16-97b4-f62613 fe6d3b W: but no matching swap device is available. That UUID should start with a 3, not a 6 as the blkid for /swap is what should be there. I am not totally sure where tthe UUID that starts with 6f6f comes from but that's also the UUID one sees when grub crashes and burns on liftoff when trying to boot from that drive. Martin