Running the command on the wrong partition or a raw device that was never formatted as XFS will trigger this message. Partition Table Corruption:
The error xfs_repair: sorry, could not find valid secondary superblock is terrifying, but it is not always fatal. If you have exhausted -o bsize= , xfs_db probing, and photorec , and you have no backup, the harsh reality is that the XFS metadata structures have been overwritten or destroyed beyond automated repair. xfs-repair sorry could not find valid secondary superblock
Expected output for healthy XFS: SGI XFS filesystem data (blksz 4096, inosz 512, v5) Running the command on the wrong partition or
When an administrator runs xfs_repair and encounters the error: Expected output for healthy XFS: SGI XFS filesystem
If that fails, the situation requires the "nuclear option" described below.
Most online tutorials will tell you: sudo xfs_repair -L /dev/sdb1 .