4
1
A (dd cloned) backup of my boot partition left me with duplicate UUIDs.
blkid
shows:
/dev/sda1: UUID="32579810-0388-416d-bb49-7031ac2c2975" TYPE="ext4"
...
/dev/mapper/raidgroup-osbackup: UUID="32579810-0388-416d-bb49-7031ac2c2975" TYPE="ext4"
...
where /dev/mapper/raidgroup-osbackup
is an LVM device.
I booted from a live Ubuntu image and tried:
sudo tune2fs -U random /dev/mapper/raidgroup-osbackup
This appeared to succeed and the target device showed a new UUID.
However, after reboot /dev/mapper/raidgroup-osbackup
was remounted at /
and blkid
showed the original UUID.
I thought the change with tune2fs
was supposed to be permanent, but this does not seem to be the case. How can I fix this?
Are you perhaps cloning the entire filesystem? You might want to look into the “Skip Activation” flag for LVM. – Daniel B – 2014-10-30T09:37:03.820
1I think the duplicate UUID indeed comes from cloning the entire file system with
dd
. It seems it should be easily solved by simply changing the UUID of the backed-up partition. But why does the UUID revert to its original value? – Thomas Arildsen – 2014-10-30T09:39:38.013