another messed-up 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:
Quoted 1 line
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:
Quoted 1 line
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
Quoted 1 line
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:
Quoted 1 line
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.
Quoted 1 line
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
Quoted 1 line
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
Quoted 1 line · Martin Fahr
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.
Quoted 4 lines
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
Hi.
Still waiting for this
http://www.mail-archive.com/[email protected]/msg08370.html
Sincerely,
Viacheslav Dobromyslov
Quoted 2 lines · Peter Stuge
Quoted 1 line · Martin Fahr
btrfsck: disk-io.c:741:
open_ctree_fd: Assertion `!(!tree_root->node=
)' failed.
Quoted 11 lines
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.
Quoted 4 lines
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)?
Quoted 6 lines
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
Quoted 3 lines
the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html