2021-10-23 19:24:55 +01:00
|
|
|
# btrfs inspect-internal
|
|
|
|
|
|
|
|
> Query internal information of a btrfs filesystem.
|
2022-11-15 11:50:15 +00:00
|
|
|
> More information: <https://btrfs.readthedocs.io/en/latest/btrfs-inspect-internal.html>.
|
2021-10-23 19:24:55 +01:00
|
|
|
|
|
|
|
- Print superblock's information:
|
|
|
|
|
|
|
|
`sudo btrfs inspect-internal dump-super {{path/to/partition}}`
|
|
|
|
|
|
|
|
- Print superblock's and all of its copies' information:
|
|
|
|
|
|
|
|
`sudo btrfs inspect-internal dump-super --all {{path/to/partition}}`
|
|
|
|
|
|
|
|
- Print filesystem's metadata information:
|
|
|
|
|
|
|
|
`sudo btrfs inspect-internal dump-tree {{path/to/partition}}`
|
|
|
|
|
|
|
|
- Print list of files in inode `n`-th:
|
|
|
|
|
|
|
|
`sudo btrfs inspect-internal inode-resolve {{n}} {{path/to/btrfs_mount}}`
|
|
|
|
|
|
|
|
- Print list of files at a given logical address:
|
|
|
|
|
|
|
|
`sudo btrfs inspect-internal logical-resolve {{logical_address}} {{path/to/btrfs_mount}}`
|
|
|
|
|
|
|
|
- Print stats of root, extent, csum and fs trees:
|
|
|
|
|
|
|
|
`sudo btrfs inspect-internal tree-stats {{path/to/partition}}`
|