On Sun, Sep 16, 2012 at 03:24:53PM +0200, Sébastien Kalt wrote:
> I'm running Debian Sid, 3.2.0-3-amd64 kernel and Btrfs v0.19

> (0.19+20120328-8 according to dpkg), using XFCE4 and dolphin as a file
> manager. The usb drive is auto-mounting, and I'm accessing it with
> dolphin or console. I always use the "remove device safely" feature
> from dolphin before disconnecting the drive or shutting down my
> laptop.

What does the 'remove safely' actually do?

eg.
sync, blockdev --flushbufs, echo 1 > /sys/block/sdX/device/delete ?

> [75447.624772] device label DD_SEB devid 1 transid 390 /dev/sdc1
> [75447.626348] btrfs: disk space caching is enabled
> [75447.666150] parent transid verify failed on 464265216 wanted 390 found 392

This has been fixed in 3.2 already, so it's possible that some
blocks were not written in the way the filesystem expects.

> btrfsck shows lots or problems (see
> https://dl.dropbox.com/u/747851/btrfsck.txt.gz 257K)
> 
> I've looked at my logfiles from thurday, and I didn't see any error
> concerning btrfs.

ie. not caused by crash.

> So I have three questions :
> 
> 1) did I do something wrong ?
> 2) is there a way to recover the data on this disk ?

Data from a 'parent transid verify' broken filesystem can be retrieved
by Josef's restore utility.

> 3) is btrfs a good choice for an external usb drive ?

If the drive unplugs unexpectedly, kernels < 3.4 do not handle this well.

david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to