commands.sh

btrfs inspect-internal

linux

Query internal information of a btrfs filesystem.

More info →

Options (7)

boolean

Print superblock's information

Example: sudo btrfs {{[i|inspect-internal]}} {{[dump-s|dump-super]}} {{path/to/partition}}
boolean

Print superblock's information

Example: sudo btrfs {{[i|inspect-internal]}} {{[dump-s|dump-super]}} {{path/to/partition}}
-a, --allboolean

Print superblock's and all of its copies' information

Example: sudo btrfs {{[i|inspect-internal]}} {{[dump-s|dump-super]}} {{[-a|--all]}} {{path/to/partition}}
boolean

Print filesystem's metadata information

Example: sudo btrfs {{[i|inspect-internal]}} {{[dump-t|dump-tree]}} {{path/to/partition}}
boolean

Print list of files in inode `n`-th

Example: sudo btrfs {{[i|inspect-internal]}} {{[i|inode-resolve]}} {{n}} {{path/to/btrfs_mount}}
boolean

Print list of files at a given logical address

Example: sudo btrfs {{[i|inspect-internal]}} {{[lo|logical-resolve]}} {{logical_address}} {{path/to/btrfs_mount}}
boolean

Print stats of root, extent, csum, and fs trees

Example: sudo btrfs {{[i|inspect-internal]}} {{[t|tree-stats]}} {{path/to/partition}}

Examples (6)

Print superblock's information

sudo btrfs [i|inspect-internal] [dump-s|dump-super] path/to/partition

Print superblock's and all of its copies' information

sudo btrfs [i|inspect-internal] [dump-s|dump-super] [-a|--all] path/to/partition

Print filesystem's metadata information

sudo btrfs [i|inspect-internal] [dump-t|dump-tree] path/to/partition

Print list of files in inode `n`-th

sudo btrfs [i|inspect-internal] [i|inode-resolve] n path/to/btrfs_mount

Print list of files at a given logical address

sudo btrfs [i|inspect-internal] [lo|logical-resolve] logical_address path/to/btrfs_mount

Print stats of root, extent, csum, and fs trees

sudo btrfs [i|inspect-internal] [t|tree-stats] path/to/partition
made by @shridhargupta | data from tldr-pages