Skip to content

Instantly share code, notes, and snippets.

@alexclear
Created February 13, 2015 21:46
Show Gist options
  • Save alexclear/3130cef0284c217962a8 to your computer and use it in GitHub Desktop.
Save alexclear/3130cef0284c217962a8 to your computer and use it in GitHub Desktop.
BTRFS restoration
root@hypervisor02 ~ mount -o ro,recovery /dev/sdc3 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sdc3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
root@hypervisor02 ~
@alexclear
Copy link
Author

[ 1680.897861] BTRFS info (device sdc3): enabling auto recovery
[ 1680.897873] BTRFS info (device sdc3): disk space caching is enabled
[ 1680.979897] BTRFS (device sdc3): bad tree block start 0 1090697187328
[ 1680.988901] BTRFS (device sdc3): bad tree block start 0 1090697187328
[ 1680.997903] BTRFS (device sdc3): bad tree block start 0 1090697187328
[ 1681.006911] BTRFS (device sdc3): bad tree block start 0 1090697187328
[ 1681.015914] BTRFS (device sdc3): bad tree block start 0 1090696372224
[ 1681.024930] BTRFS (device sdc3): bad tree block start 0 1090696372224
[ 1681.024972] BTRFS: failed to read tree root on sdc3
[ 1681.033942] BTRFS (device sdc3): bad tree block start 0 1090688458752
[ 1681.042946] BTRFS (device sdc3): bad tree block start 0 1090688458752
[ 1681.042986] BTRFS: failed to read tree root on sdc3
[ 1681.051950] BTRFS (device sdc3): bad tree block start 0 1090686500864
[ 1681.060953] BTRFS (device sdc3): bad tree block start 0 1090686500864
[ 1681.060993] BTRFS: failed to read tree root on sdc3
[ 1681.084297] BTRFS: open_ctree failed

@alexclear
Copy link
Author

root@hypervisor02 ~ btrfs-find-root /dev/sdc3
Super think's the tree root is at 1090704560128, chunk root 1002780106752
Went past the fs size, exiting# root@hypervisor02 ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment