linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Btrfs suddenly unmountable, open_ctree failed
@ 2014-06-23 22:18 Mike Hartman
  2014-06-24  1:17 ` Chris Murphy
  0 siblings, 1 reply; 18+ messages in thread
From: Mike Hartman @ 2014-06-23 22:18 UTC (permalink / raw)
  To: linux-btrfs

Distro: Linux Mint 16
Kernel: 3.11.0-12-generic
Btrfs (used to create): 0.20-rc1 (current version in Mint repo)
Btrfs (used to troubleshoot): 3.14.2

Setup: sda6 is a luks container with btrfs inside. Btrfs has
subvolumes @ (/) and @home (/home).

I was doing nothing in particular on my laptop (normal web browsing)
when I noticed my system had gone read-only. dmesg showed an IO error
of some kind between btrfs and the underlying drive. I didn't think to
save it out on the web.

I rebooted and successfully unlocked the luks container, but the btrfs
volumes failed to mount. dmesg showed output like:

[92039.112690] device fsid b1205e06-7943-4aaf-9e13-4df0cf1394bc devid
1 transid 214454 /dev/mapper/sda6_crypt
[92039.113633] btrfs: disk space caching is enabled
[92039.116754] btrfs bad tree block start 10446918091381484860 760696832
[92039.116956] btrfs bad tree block start 7222353813307377896 760696832
[92039.141820] btrfs: open_ctree failed

I dded an image of the partition, grabbed the latest btrfs-progs from
git, and then tried every troubleshooting/recovery method I could find
online with no luck. The complete transcript is available here:

http://pastebin.com/PSHL7UxZ

Summary:

"mount -o ro,recovery", "btrfs-image", "btrfs-debug-tree",
"btrfs-zero-log", "btrfs check" and "btrfs restore" all failed.

"btrfs rescue super-recover" said the supers are fine.
"btrfs-find-root" said it found the tree root. "btrfs rescue
chunk-recover" said it was successful.

The drive itself seems to be ok, but I haven't tried any tests that
would write to it. (The original btrfs data is still there and
untouched.)

Can anyone offer any suggestions? Is this data really unrecoverable? I
have no idea what could have gone so severely wrong.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-06-25 19:50 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-23 22:18 Btrfs suddenly unmountable, open_ctree failed Mike Hartman
2014-06-24  1:17 ` Chris Murphy
2014-06-24  2:20   ` Wang Shilong
2014-06-24  3:04     ` Mike Hartman
2014-06-24  3:09       ` Wang Shilong
2014-06-24  5:39         ` Mike Hartman
2014-06-24 15:40           ` Chris Murphy
2014-06-24  2:58   ` Mike Hartman
2014-06-24  4:15     ` Chris Murphy
2014-06-24  4:49       ` Mike Hartman
     [not found]       ` <CAB=7dhms_ehP4y+L_tMBrdUnJiwXAOn7E4Fa9u3euVBwBKHOKA@mail.gmail.com>
2014-06-24  5:19         ` Chris Murphy
2014-06-24  5:49           ` Mike Hartman
2014-06-24 16:15             ` Chris Murphy
2014-06-25  5:53               ` Mike Hartman
2014-06-25 18:38                 ` Chris Murphy
2014-06-25 19:32                   ` Mike Hartman
2014-06-25 19:50                     ` Chris Murphy
2014-06-24 10:00           ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).