This guide covers the identification and resolution of duplicate Universally Unique Identifiers (UUIDs) across various Linux file systems and Volume Managers.
Before making changes, identify which partitions are sharing the same UUID.
lsblk -fblkidLook for matching strings in the UUID column for different device names (e.g., /dev/sda1 and /dev/sdb1 having the same ID).
For EXT2, EXT3, or EXT4 partitions, you can generate a new random UUID while the drive is live or unmounted.
# Syntax: sudo tune2fs -U random /dev/sdX#
sudo tune2fs -U random /dev/sdb1
# 1. Unmount the partition
sudo umount /dev/sdX#
# 2. Generate a new UUID
sudo xfs_admin -U generate /dev/sdX#
LVM uses UUIDs for Physical Volumes (PV) and names for Volume Groups (VG). Cloning an LVM disk creates duplicates of both.
Use these commands to check for "Duplicate PV" warnings:
pvs (Physical Volumes)vgs (Volume Groups)pvdisplaysudo pvchange -u /dev/sdX2
# sudo vgrename [VG_UUID] [new_vg_name]
sudo vgrename a1b2c3-d4e5-f6g7-h8i9 new_vg_name
Changing a UUID will break your automatic mounting if the system is looking for the old ID.
blkid to copy the new UUID.sudo nano /etc/fstabIf you changed the UUID of your root (/) or boot partition, you must update your GRUB configuration:
sudo update-grub
Finalize the process by testing the mounts and rebooting.
sudo mount -a (If no errors appear, your fstab is correct).sudo rebootlsblk -f one last time.