After replacing PSU, system says that initramfs needs to be regenerated

And this e9a5e118-a6ab-47ac-af2b-f733cc2d3236 is the ID that you saw in the error message, right?

So this sounds like btrfs filesystem corruption.

btrfs is vulnerable to this when a “dirty” shutdown happens. That might have happened if the power was cut because of the issues with your old PSU, or it could also be that the repair shop switched on your computer then didn’t shut it down properly.

Recreating the initramfs definitely won’t help in this situation.

I believe that often the data is recoverable, because of the data protections that btrfs includes, but the filesystem goes into read-only mode to prevent further damage, and then you can’t boot from it.

I’m not an expert in this, but hopefully someone else will know more how you can attempt to recover the btrfs filesystem.

okay thanks heaps for your reply that makes sense just hopefully some knowledgeable person on the issue will chime in, I have a backup so I can format and restore if all else fails but like I’ve said I’m sick of formatting whenever I have an issue so finger crossed someone will chine in or I’ll keep searching and find a solution

If your CMOS battery is dead, the act of disconnecting the PSU may have been enough to reset some BIOS setting that affects how your drive is accessed by the kernel. In particular, I note that the btrfs drive that “doesn’t exist” in the initramfs error message you pasted is -a6ab-47ac-af2b-f733cc2d3236 rather than the full e9a5e118-a6ab-47ac-af2b-f733cc2d3236 … are you sure you’re using the same bootloader you were using before (EFI vs Legacy BIOS)? One of them might have a broken root= kernel config line.