commands.sh

btrfs rescue

linux

Try to recover a damaged btrfs filesystem.

More info →

Options (6)

boolean

Rebuild the filesystem metadata tree (very slow)

Example: sudo btrfs {{[resc|rescue]}} {{[ch|chunk-recover]}} {{path/to/partition}}
boolean

Rebuild the filesystem metadata tree (very slow)

Example: sudo btrfs {{[resc|rescue]}} {{[ch|chunk-recover]}} {{path/to/partition}}
boolean

Fix device size alignment related problems (e.g. unable to mount the filesystem with super total bytes mismatch)

Example: sudo btrfs {{[resc|rescue]}} {{[fix-de|fix-device-size]}} {{path/to/partition}}
boolean

Recover a corrupted superblock from correct copies (recover the root of filesystem tree)

Example: sudo btrfs {{[resc|rescue]}} {{[s|super-recover]}} {{path/to/partition}}
boolean

Recover from an interrupted transactions (fixes log replay problems)

Example: sudo btrfs {{[resc|rescue]}} {{[z|zero-log]}} {{path/to/partition}}
boolean

Create a `/dev/btrfs-control` control device when `mknod` is not installed

Example: sudo btrfs {{[resc|rescue]}} {{[c|create-control-device]}}

Examples (5)

Rebuild the filesystem metadata tree (very slow)

sudo btrfs [resc|rescue] [ch|chunk-recover] path/to/partition

Fix device size alignment related problems (e.g. unable to mount the filesystem with super total bytes mismatch)

sudo btrfs [resc|rescue] [fix-de|fix-device-size] path/to/partition

Recover a corrupted superblock from correct copies (recover the root of filesystem tree)

sudo btrfs [resc|rescue] [s|super-recover] path/to/partition

Recover from an interrupted transactions (fixes log replay problems)

sudo btrfs [resc|rescue] [z|zero-log] path/to/partition

Create a `/dev/btrfs-control` control device when `mknod` is not installed

sudo btrfs [resc|rescue] [c|create-control-device]
made by @shridhargupta | data from tldr-pages