The title pretty much speaks for itself… I have a linux install that I’ve spent a considerable time configuring, which is unfortunately installed on a drive that’s starting to show signs of dying.
My question is: how, if there is a way, can I migrate said linux install over to a different drive, while preserving all the configurations and such.
EDIT: Thank you to everyone who commented! I made the transfer, using dd and it went mostly smoothly, even if it did take a while.
I did this recently. dd is fine, but you have to make sure you catch all of the places the UUID of the device is referenced. Maybe fstab, but certainly in the boot loader. This bit me, because the device IDs changed, and UEFI couldn’t find the new partitions.
Make sure you have a bootable USB rescue disk, and you’ll be fine. Even if you mess up like I did, it’s just a matter of booting, mounting, and finding the config file you missed, and replacing the blkids.