Update cheatsheets

This commit is contained in:
ivuorinen
2025-07-20 00:24:01 +00:00
parent 16134c78d9
commit 1ec3810968
41 changed files with 352 additions and 139 deletions

View File

@@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
- Print superblock's information:
`sudo btrfs inspect-internal dump-super {{path/to/partition}}`
`sudo btrfs {{[i|inspect-internal]}} {{[dump-s|dump-super]}} {{path/to/partition}}`
- Print superblock's and all of its copies' information:
`sudo btrfs inspect-internal dump-super {{[-a|--all]}} {{path/to/partition}}`
`sudo btrfs {{[i|inspect-internal]}} {{[dump-s|dump-super]}} {{[-a|--all]}} {{path/to/partition}}`
- Print filesystem's metadata information:
`sudo btrfs inspect-internal dump-tree {{path/to/partition}}`
`sudo btrfs {{[i|inspect-internal]}} {{[dump-t|dump-tree]}} {{path/to/partition}}`
- Print list of files in inode `n`-th:
`sudo btrfs inspect-internal inode-resolve {{n}} {{path/to/btrfs_mount}}`
`sudo btrfs {{[i|inspect-internal]}} {{[i|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}}`
`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 inspect-internal tree-stats {{path/to/partition}}`
`sudo btrfs {{[i|inspect-internal]}} {{[t|tree-stats]}} {{path/to/partition}}`