Linux command
btrfs-rescue 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Rebuild
sudo btrfs rescue chunk-recover [path/to/partition]
Example
sudo btrfs rescue fix-device-size [path/to/partition]
Recover corrupted superblock
sudo btrfs rescue super-recover [path/to/partition]
Example
sudo btrfs rescue zero-log [path/to/partition]
Example
sudo btrfs rescue create-control-device
说明
btrfs rescue provides recovery tools for damaged btrfs filesystems. These are last-resort commands when normal mounting or btrfs check fails. Each subcommand addresses specific failure modes like corrupted metadata, superblock damage, or interrupted transactions. The filesystem must be unmounted for all operations.
FAQ
What is the btrfs-rescue command used for?
btrfs rescue provides recovery tools for damaged btrfs filesystems. These are last-resort commands when normal mounting or btrfs check fails. Each subcommand addresses specific failure modes like corrupted metadata, superblock damage, or interrupted transactions. The filesystem must be unmounted for all operations.
How do I run a basic btrfs-rescue example?
Run `sudo btrfs rescue chunk-recover [path/to/partition]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more btrfs-rescue examples?
This page includes 5 examples for btrfs-rescue, plus related commands for nearby Linux tasks.