All of lore.kernel.org
 help / color / mirror / Atom feed
* btrfs partition is broken, cannot restore anything
@ 2018-11-01 20:40 Attila Vangel
  2018-11-02  0:26 ` Qu Wenruo
  2018-11-05 18:01 ` Attila Vangel
  0 siblings, 2 replies; 8+ messages in thread
From: Attila Vangel @ 2018-11-01 20:40 UTC (permalink / raw)
  To: linux-btrfs

Hi,

Somehow my btrfs partition got broken. I use Arch, so my kernel is
quite new (4.18.x).
I don't remember exactly the sequence of events. At some point it was
accessible in read-only, but unfortunately I did not take backup
immediately. dmesg log from that time:

[ 62.602388] BTRFS warning (device nvme0n1p2): block group
103923318784 has wrong amount of free space
[ 62.602390] BTRFS warning (device nvme0n1p2): failed to load free
space cache for block group 103923318784, rebuilding it now
[ 108.039188] BTRFS error (device nvme0n1p2): bad tree block start 0 18812026880
[ 108.039227] BTRFS: error (device nvme0n1p2) in
__btrfs_free_extent:7010: errno=-5 IO failure
[ 108.039241] BTRFS info (device nvme0n1p2): forced readonly
[ 108.039250] BTRFS: error (device nvme0n1p2) in
btrfs_run_delayed_refs:3076: errno=-5 IO failure

At the next reboot it failed to mount. Problem may have been that at
some point I booted to another distro with older kernel (4.15.x,
4.14.52) and unfortunately attempted some checks/repairs (?) e.g. from
gparted, and at that time I did not know it could be destructive.

Anyway, currently it fails to mount (even with ro and/or recovery),
btrfs check results in "checksum verify failed" and "bad tree block"
errors, btrfs restore resulted in "We have looped trying to restore
files in" errors for a dozen of paths then exit.

Is there some hope to save data from the filesystem, and if so, how?

BTW I checked some diagnostics commands regarding my SSD with the nvme
client and from that it seems there are no hardware problems.

Your help is highly appreciated.

Cheers,
Attila

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

end of thread, other threads:[~2018-11-06 11:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-01 20:40 btrfs partition is broken, cannot restore anything Attila Vangel
2018-11-02  0:26 ` Qu Wenruo
2018-11-05 18:01 ` Attila Vangel
2018-11-05 18:10   ` Attila Vangel
2018-11-06  1:28   ` Qu Wenruo
2018-11-06  8:17     ` Attila Vangel
2018-11-06  8:22       ` Qu Wenruo
2018-11-06 11:17         ` Attila Vangel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.