Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm now studying Linux file system and curious about how to read an i-node with a i-node # get from ls -i? Seems fsdb in Unix is such a tool but didn't find its correspondent in Linux.

Thanks and best regards.

share|improve this question
up vote 4 down vote accepted

debugfs from e2fsprogs works on ext2/ext3/ext4 filesystems. Use its stat command; the inode number must be given in < >.

# debugfs /dev/sdz1
debugfs:  stat <42>

For JFS, inode in jfs_debugfs (jfsutils):

# jfs_debugfs /dev/sdz1
> inode 42

For XFS, use xfs_db (xfsprogs):

# xfs_db /dev/sdz1
xfs_db> inode 42
xfs_db> print

For NTFS, use ntfsinfo (ntfsprogs):

# ntfsinfo -i 42 /dev/sdz1
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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