UUIDs
are not hardware-specific but stored in the partition's
filesystem. That means cloning a disk or partition with dd will
result in the same UUID.
You can assign a new UUID by using:
tune2fs -U random <device>(ext2/ext3/ext4)xfs_admin -U generate <device>(xfs)reiserfstune -u $(uuidgen) <device>(reiserfs)mkswap -U $(uuidgen) <device>(swap)
Having duplicated UUIDs doesn't necessarily lead to errors. However booting and mounting a device by UUID will become ambiguous and may lead to the wrong device being used.
So I ran:
sudo
tune2fs -U random /dev/sdb2
tune2fs 1.45.5 (07-Jan-2020)
This operation requires a freshly checked filesystem.
Please run e2fsck -f on the filesystem.
I'm reluctant to run the "Please" command as I know fsck can be a powerful tool. Since I can't yet mount the cloned disk I can't see how I can run the command to check it.
Any help is greatly appreciated!
Oh,
I can also see that the cloned drive is a backup when I boot
the live thumb drive. Everything is in there. However, in case
I need it to restore data it would help if I could mount it.