CentOS, my distribution of choice, isn’t as UUID-happy as other distributions are.

Fun With UUIDs and ext3, XFS

June 13th, 2009

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

Note: Still working out comments/etc. theming. Please ignore the ugliness.

Comments are closed.