tune2fs: Bad magic number in super-block while trying to open /dev/sdb1

Solution 1:

You need to create the FS on /dev/sdb1, not /dev/sdb.

mkfs.xfs -i size=1024 /dev/sdb1

(Might just be a typo in the question).

More important: tune2fs is meant for ext2/3/4 file systems, not XFS, so this can't work at all. What do you want to do with tune2fs?