1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 02:33:52 +02:00

btrfs-rescue: add page (#6963)

This commit is contained in:
kyteinsky 2021-10-25 21:14:30 +00:00 committed by GitHub
parent 287e7fefb4
commit 9dc2d0cd86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,24 @@
# btrfs rescue
> Try to recover a damaged btrfs filesystem.
> More information: <https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-rescue>.
- Rebuild the filesystem metadata tree (very slow):
`sudo btrfs rescue 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 rescue fix-device-size {{path/to/partition}}`
- Recover a corrupted superblock from correct copies (recover the root of filesystem tree):
`sudo btrfs rescue super-recover {{path/to/partition}}`
- Recover from an interrupted transactions (fixes log replay problems):
`sudo btrfs rescue zero-log {{path/to/partition}}`
- Create a `/dev/btrfs-control` control device when `mknod` is not installed:
`sudo btrfs rescue create-control-device`