All of lore.kernel.org
 help / color / mirror / Atom feed
* another messed-up btrfs
@ 2011-04-01 19:47 Martin Fahr
  2011-04-01 20:01 ` Peter Stuge
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Fahr @ 2011-04-01 19:47 UTC (permalink / raw)
  To: linux-btrfs

Hi, 

I have put a linux system on an external SSD recently, using btrfs for both root (/) and /home. After a couple of hibernation cycles the system got stuck and I had to reboot it ignoring the memory image on disk. Unfortunately, even a normal reboot did not work anymore. The kernel complains about not being able to mount the root filesystem. 

I connected the disk to another system, where the two partitions were not mountable either. btrfsck gave:
> btrfsck /dev/sdc2        #this was root
btrfsck: disk-io.c:741: open_ctree_fd: Assertion `!(!tree_root->node)' failed.
Aborted

Taking advice from some earlier emails I have found on this list, I downloaded the recent btrfsck code using git, compiled it, and did:
> btrfsck -s 1 /dev/sdc2
btrfsck: disk-io.c:739: open_ctree_fd: Assertion `!(!tree_root->node)' failed.
using SB copy 1, bytenr 67108864
Aborted
> btrfsck -s 2 /dev/sdc2
No valid Btrfs found on /dev/sdc2
using SB copy 2, bytenr 274877906944

The same commands for the other partition on the disk gives different messages, but still an unusable file system:

> btrfsck /dev/sdc4
parent transid verify failed on 59128545280 wanted 7937 found 7934
parent transid verify failed on 59128545280 wanted 7937 found 7934
parent transid verify failed on 59128545280 wanted 7937 found 7934
btrfsck: disk-io.c:739: open_ctree_fd: Assertion `!(!tree_root->node)' failed.
> btrfsck -s 1 /dev/sdc4
parent transid verify failed on 59128545280 wanted 7937 found 7934
parent transid verify failed on 59128545280 wanted 7937 found 7934
parent transid verify failed on 59128545280 wanted 7937 found 7934
btrfsck: disk-io.c:739: open_ctree_fd: Assertion `!(!tree_root->node)' failed.
using SB copy 1, bytenr 67108864
> btrfsck -s 2 /dev/sdc4
No valid Btrfs found on /dev/sdc4
using SB copy 2, bytenr 274877906944

The usual questions: Is there anything I could do to help analyze and fix the problem? Is there hope to restore the data any time soon, or should I better use the backup I have (and possibly move to an ext4 file system)?

Thx
Martin

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

* Re: another messed-up btrfs
  2011-04-01 19:47 another messed-up btrfs Martin Fahr
@ 2011-04-01 20:01 ` Peter Stuge
  2011-04-02  0:05   ` Viacheslav Dobromyslov
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Stuge @ 2011-04-01 20:01 UTC (permalink / raw)
  To: linux-btrfs

Martin Fahr wrote:
> btrfsck: disk-io.c:741: open_ctree_fd: Assertion `!(!tree_root->node)' failed.

My fs is also broken this way, though for me it happened after
resizing the fs and then partition. I still need to go back to the
list thread and do some work on my image.


> The usual questions: Is there anything I could do to help analyze
> and fix the problem? Is there hope to restore the data any time
> soon, or should I better use the backup I have (and possibly move
> to an ext4 file system)?

It seems the root node is a bit of a sore point with btrfs. :\


//Peter

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

* Re: another messed-up btrfs
  2011-04-01 20:01 ` Peter Stuge
@ 2011-04-02  0:05   ` Viacheslav Dobromyslov
  0 siblings, 0 replies; 3+ messages in thread
From: Viacheslav Dobromyslov @ 2011-04-02  0:05 UTC (permalink / raw)
  To: linux-btrfs

Hi.

Still waiting for this
http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg08370.html

Sincerely,
Viacheslav Dobromyslov



On Fri, Apr 1, 2011 at 8:01 PM, Peter Stuge <peter@stuge.se> wrote:
> Martin Fahr wrote:
>> btrfsck: disk-io.c:741: open_ctree_fd: Assertion `!(!tree_root->node=
)' failed.
>
> My fs is also broken this way, though for me it happened after
> resizing the fs and then partition. I still need to go back to the
> list thread and do some work on my image.
>
>
>> The usual questions: Is there anything I could do to help analyze
>> and fix the problem? Is there hope to restore the data any time
>> soon, or should I better use the backup I have (and possibly move
>> to an ext4 file system)?
>
> It seems the root node is a bit of a sore point with btrfs. :\
>
>
> //Peter
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs=
" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2011-04-02  0:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01 19:47 another messed-up btrfs Martin Fahr
2011-04-01 20:01 ` Peter Stuge
2011-04-02  0:05   ` Viacheslav Dobromyslov

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.