linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Viacheslav Dobromyslov <slavik.dobro@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: btrfs: open_ctree failed after power loss
Date: Sat, 5 Feb 2011 06:53:54 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110205T071833-653@post.gmane.org> (raw)

Hello, friends!

I have some troubles with removable disk after powering off without unmounting.
'btrfsck' and 'btrfs-select-super' didn't help.

# uname -srvo
Linux 2.6.37-gentoo #2 SMP PREEMPT Tue Jan 11 20:58:56 VLAT 2011 GNU/Linux

Installed sys-fs/btrfs-progs-0.19-r2.

# btrfs fi show
failed to read /dev/sr0
Label: none  uuid: acf790ef-13ba-4c08-b0d3-3ab9938b5b94
	Total devices 1 FS bytes used 9.97GB
	devid    1 size 14.65GB used 14.65GB path /dev/sda4

Label: none  uuid: 53b9ab33-8049-46e0-a90f-b601446abc79
	Total devices 1 FS bytes used 20.35GB
	devid    1 size 150.00GB used 23.29GB path /dev/sdc2

# mount -t btrfs /dev/sdc2 /mnt/
mount: wrong fs type, bad option, bad superblock on /dev/sdc2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

# dmesg
device fsid e046498033abb953-79bc6a4401b60fa9 devid 1 transid 433 /dev/sdc2
btrfs: open_ctree failed

# btrfsck /dev/sdc2
found 21851738112 bytes used err is 0
total csum bytes: 21297140
total tree bytes: 43466752
total fs tree bytes: 17068032
btree space waste bytes: 7526756
file data blocks allocated: 21808271360
 referenced 21808271360
Btrfs Btrfs v0.19

# btrfs-select-super -s 1 /dev/sdc2
using SB copy 1, bytenr 67108864

# btrfs-debug-tree /dev/sdc2
root tree
leaf 23651717120 items 12 free space 1987 generation 433 owner 1
fs uuid 53b9ab33-8049-46e0-a90f-b601446abc79
chunk uuid 461537d2-d586-4f0c-9469-09d8933bce0a
        item 0 key (EXTENT_TREE ROOT_ITEM 0) itemoff 3756 itemsize 239
                root data bytenr 23651721216 level 2 dirid 0 refs 1

.....................................

	item 30 key (12298 EXTENT_DATA 0) itemoff 1548 itemsize 53
		extent data disk byte 22261157888 nr 13418496
		extent data offset 0 nr 13418496 ram 13418496
		extent compression 0
data reloc tree key (DATA_RELOC_TREE ROOT_ITEM 0) 
leaf 29380608 items 2 free space 3773 generation 5 owner 18446744073709551607
fs uuid 53b9ab33-8049-46e0-a90f-b601446abc79
chunk uuid 461537d2-d586-4f0c-9469-09d8933bce0a
	item 0 key (FIRST_CHUNK_TREE INODE_ITEM 0) itemoff 3835 itemsize 160
		inode generation 4 size 0 block group 0 mode 40555 links 1
	item 1 key (FIRST_CHUNK_TREE INODE_REF 256) itemoff 3823 itemsize 12
		inode ref index 0 namelen 2 name: ..
total bytes 161067429888
bytes used 21851738112
uuid 53b9ab33-8049-46e0-a90f-b601446abc79
Btrfs Btrfs v0.19


I've already found similar trouble http://www.spinics.net/lists/linux-
btrfs/msg07572.html . but that solution didn't help.


             reply	other threads:[~2011-02-05  6:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-05  6:53 Viacheslav Dobromyslov [this message]
2011-03-19  7:53 ` btrfs: open_ctree failed after power loss Viacheslav Dobromyslov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110205T071833-653@post.gmane.org \
    --to=slavik.dobro@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).