Fun With UUIDs
June 13, 2009 - 4:28 pm
The following examples assume the partition in question is located at /dev/sdb1. YMMV.
Set new UUID on XFS Partition, RHEL/CentOS:
xfs admin -U generate /dev/sdb1
Set new UUID on XFS Partition, SLES/OpenSUSE:
xfs_admin -U generate /dev/sdb1
Set new UUID on Ext3 Partition and Display New UUID (RHEL/CentOS, SLES/OpenSUSE):
tune2fs /dev/sdb1 -U random
dumpe2fs -h /dev/sdb1 | grep UUID