7

fdisk -l shows the volume so it looks like it's attached but when I follow these steps

echo "/dev/xvdg /vol2 xfs noatime 0 0" | sudo tee -a /etc/fstab
sudo mkdir /vol2
sudo mount /vol2

I get the error

 mount: wrong fs type, bad option, bad superblock on /dev/xvdg,
     missing codepage or helper program, or other error
     In some cases useful info is found in syslog - try
     dmesg | tail  or so

When I check dmesg I see

XFS: Filesystem xvdg has duplicate UUID - can't mount

What do I do?

Jeff Atwood
  • 13,104
  • 20
  • 75
  • 92
Dave L
  • 211
  • 3
  • 6

1 Answers1

23

Either mount without the UUID (short term solution):

mount -o nouuid DEVICE MOUNT_POINT

OR generate a new UUID for the device and then mount normally:

xfs_admin -U generate DEVICE

(First Google result by the way. XFS Filesystem has duplicate UUID problem)

cyberx86
  • 20,805
  • 1
  • 62
  • 81