Linux command
btrfs-inspect-internal 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
sudo btrfs inspect-internal dump-super [path/to/partition]
Example
sudo btrfs inspect-internal dump-super -a [path/to/partition]
Example
sudo btrfs inspect-internal dump-tree [path/to/partition]
Example
sudo btrfs inspect-internal inode-resolve [inode_number] [path/to/btrfs_mount]
Example
sudo btrfs inspect-internal logical-resolve [logical_address] [path/to/btrfs_mount]
Example
sudo btrfs inspect-internal tree-stats [path/to/partition]
Example
sudo btrfs inspect-internal min-dev-size [path/to/btrfs_mount]
说明
btrfs inspect-internal provides low-level access to btrfs filesystem internal structures. It is primarily used for debugging, forensics, and advanced troubleshooting. The command can dump superblock data, metadata trees, and resolve inodes to file paths or logical addresses to physical locations.
参数
- -a, --all
- Dump all superblock copies
- -f
- Force output even with warnings
FAQ
What is the btrfs-inspect-internal command used for?
btrfs inspect-internal provides low-level access to btrfs filesystem internal structures. It is primarily used for debugging, forensics, and advanced troubleshooting. The command can dump superblock data, metadata trees, and resolve inodes to file paths or logical addresses to physical locations.
How do I run a basic btrfs-inspect-internal example?
Run `sudo btrfs inspect-internal dump-super [path/to/partition]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --all do in btrfs-inspect-internal?
Dump all superblock copies