Pages

How to change the UUID of a Filesystem

The UUID should be unique per filesystem. If the backing storage is cloned on a block level, the metadata that contains UUID information for the filesystem will be identical for the original and duplicate filesystem. to use the clonned filesystem we need to change the UUID of the cloned filesystem you can use the command tune2fs that  allows the UUID to be changed using the -U flag. The -U flag allows generation of a random UUID

# tune2fs -U random /dev/sdX
 
Note:- Changing the UUID of partitions used in the boot process, for example in the root partition LVM, can make the system unbootable.

You can check the UUID of partitions with the command

# blkid
# dumpe2fs /dev/sdX | less

No comments:

Post a Comment