Interview Prep/Linux/Disk space, inodes and filesystems

Mounting a disk cloned from another server fails: `mount: /mnt/clone: wrong fs type ... ` and `dmesg` says `XFS (nvme1n1p1): Filesystem has duplicate UUID`.

IntermediateTroubleshootingDisk space, inodes and filesystems
Answer

Likely causes → The clone has the same XFS UUID as a mounted filesystem (common when mounting a snapshot of the root volume on the same instance).

Diagnose →

sudo blkid
dmesg -T | tail

Fix → Mount with -o nouuid for a temporary mount, or give it a new UUID permanently: sudo xfs_admin -U generate /dev/nvme1n1p1.

Prevent → Use nouuid in rescue runbooks.

All Linux questions Roadmap: Linux

More on Disk space, inodes and filesystems