When extensive tweaking goes wrong, Timeshift can recover your Linux installation.
I have a couple of scavenged laptops, old stuff, really, that I use to play around and test small, stupid things. So, I changed the HDD from Laptop A to Laptop B, I'm talking Ubuntu Lucid Lynx, 32 ...