How To Fix Error “Wrong Fs Type, Bad Option, Bad Superblock” When Mounting a Filesystem

When trying to mount can XFS filestsen on an AWS instance, I got the error “mount: wrong fs type, bad option, bad superblock on /dev/sdh”
Examine the volume’s UUID with the xfs_db command:
shell> sudo xfs_db -c uuid /dev/nvme2n1
To fix the problem, you have two options…
Temporary Solution
Add nouuid mount option to temporarily ignore the duplicate validation:
shell> sudo mount -t xfs -o nouuid /dev/nvme2n1 /volumes/tmp
Permanent Solution
The xfs_admin command can permanently adjust the UUID for the volume:
1 2 3 4 |
shell> sudo xfs_admin -U generate /dev/nvme2n1 Clearing log and setting UUID writing all SBs new UUID = 5eb71513-2d234-4b79-9a35-f22f2974672d |
Leave Your Comment
All fields marked with "*" are required.