vimes666 wrote: ⤴Wed Mar 06, 2024 3:37 pm
Why would you do that?
One situation is you may need to replace a data drive that died and you have to rebuild it from or more backups, downloads from the "interwebz", etc. in which case the drive's UUID will be different than from the original drive's UUID. In a case like this, it may be simpler to replace the new drive's UUID with the original one rather than go into the OS and programs that use the original UUID and change all those parameters to the new UUID.
Another situation is, to avoid tying up the computer while cloning a replacement drive (to get more capacity or a faster drive), you can use an advanced copy program (such as FreeFileSync) to just copy the data from the old drive to the new drive which would allow you to keep using the computer while the copying is going on. Same as above, it may be easier to just change the new drives UUID back to the original UUID than to have to correct fstab entries and any entries in programs that look for the UUID of a drive.
Granted, this procedure is one for a very limited use case that most people will never encounter but, at least, it is here for the rare times when it will be useful. For the rare person who will need it, this tutorial will save them the hours of research and experimentation it took me to find out how to do it.