I know that EXT superblock information can be found using dumpe2fs -h /dev/sda1, but what is the XFS equivalent of this? The best I have found so far is xfs_info /dev/sda1, but this doesn't seem to produce nearly as much information as can be gotten with an EXT filesystem.


Found the answer in the official documentation. Looks like the filesystem cannot be mounted.

$ sudo xfs_db /dev/sda1
xfs_db> sb
xfs_db> p
magicnum = 0x58465342
blocksize = 4096
dblocks = 62769952
rblocks = 0
  • What does sb do? – Rui F Ribeiro Jan 9 '18 at 21:55
  • 1
    I am guessing sb selects the superblock. p prints the superblock. – Timothy Pulliam Jan 9 '18 at 21:58
  • 1
    no need to guess – bu5hman Jan 10 '18 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.