Skip to contentSkip to conversation

unable to mount a btrfs partition

DISCUSSION frantz.hacquard 2 participants 2 messages Nov 21, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hello,

i don't know if it's the right place to post my problem.

yesterday my btrfs partition (/dev/sda4) worked very well but now i can't mount my btrfs partition anymore. it says : wrong fs type, bad option, bad superblock on /dev/sda4, missing codepage ...

i know btrfs is still in developement, but i would try to recover a file on this partition. i tried many options of mount (-t btrfs -o recovery -o degraded...) but it's always the same issue.

i tried many commands in order to recover my file, but nothing seems to work :

Quoted 1 line

btrfs device scan

failed to read /dev/sr0

Quoted 1 line

btrfs-show

failed to read /dev/sr0
label : none uuid : 79995074....
total devices 1 FS bytes useg 4GB
devid 1 size 60GB used 8GB path /dev/sda4

Quoted 1 line

btrfsck /dev/sda4

parent transid verify failed on ... wanted ... found ... ignoring transid failure
leaf parent key incorrect ...
...
btrfsck.c: check_owner_ref : assertion '!(rec->is_root)' failed aborted

Quoted 1 line

btrfs-select-super -s 1 /dev/sda4 (also tried -s 0 and -s 2)

using SB copy 1, bytenr 67...
parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... ignoring transid failure

Quoted 1 line

btrfs-zero-log /dev/sda4

parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... ignoring transid failure
...

Quoted 1 line

btrfs-restore /dev/sda4 /mnt/test

parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... ignoring transid failure
root objectid is 5
parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... parent transid verify failed on ... wanted ... found ... ignoring transid failure

is there a way to recover my file ? (/root/scripts/test.sh)

thanks for help.

#1 lore raw
Quoted 9 lines · frantz.hacquard

Hello,

i don't know if it's the right place to post my problem.

yesterday my btrfs partition (/dev/sda4) worked very well but now i can't mount my btrfs partition anymore.
it says : wrong fs type, bad option, bad superblock on /dev/sda4, missing codepage ...

Quoted 4 lines

i know btrfs is still in developement, but i would try to recover a file on this partition.
i tried many options of mount (-t btrfs -o recovery -o degraded...) but it's always the same issue.

kernel version?
If you haven't tried 3.6.x, try that yet.

I'm not saying it'll fix your problem, but half the bugs I filed were already fixed in the latest kernel.

Marc

Signature · 4 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/