linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kai Krakow <hurikhan77+btrfs@gmail.com>
To: Farz Hem <fahhem2@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Accidental formatting
Date: Mon, 6 Feb 2012 09:42:30 +0100	[thread overview]
Message-ID: <CAMthOuO-_fB41=0AdzNaUt_U6D+7ueav5MK7mgAOdeiS2GmM0w@mail.gmail.com> (raw)
In-Reply-To: <CAD8hrTPmcuac6wtJPR=pHES1gQJ2Q+ft8OmNOOKopMQKmV+8qA@mail.gmail.com>

It seems you didn't reply to the list (at least Gmail doesn't tell me
"via vger.kernel.org", I cc'ed your email address)... I've added the
list again.

Anyway, here's my comment on this:

2012/2/6 Farz Hem <fahhem2@gmail.com>:
> I thought of corrupting my tree root, but I ran "btrfs-debug-tree" and
> didn't see any tree root backups mentioned. On the youtube where Avi Miller
> mentioned it, he used "btrfs-debug-tree -R" but the version of btrfs-tools
> that I have available, as well as any I could compile from sources from the
> kernel wiki, didn't have a -R option. Either way, I'm not sure there is a
> root tree backup since I initially created the btrfs on a 3.0.0 kernel. I
> can run a 3.0.0 or 3.2.0 kernel on the new system as necessary.

I think Avi was using a pre-release version of the new btrfs-progs
from Chris which are soon to be released. I've watched that video,
too. But you are right, root tree backups are in btrfs only since 3.2
so if you never booted that kernel before purging the filesystem,
there are no backups.

> I'll try running photorec tomorrow, thanks for the pointer to that. Of
> course, a btrfs-specific way, such as using an older root tree, would be
> better since I'd get a higher signal-to-noise ratio on returned files.

I think photorec will expect the files to be continous so it will
probably return old versions of files (before COW'ed) or junk blocks
within the files. You should carefully check your important files
after finding them.

So in conclusion, photorec is probably your best chance (except trying
Josef's rescue uitility, see his btrfs-progs tree on Github[1]). The
rescue/restore utility is afair only in the unstable tree[2] which is
missing support for compression but you can copy that utility over to
the master tree without problems and modify the Makefile accordingly.

[1] https://github.com/josefbacik/btrfs-progs
[2] https://github.com/josefbacik/btrfs-progs/tree/unstable

      parent reply	other threads:[~2012-02-06  8:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-06  3:41 Accidental formatting Fahrzin Hemmati
2012-02-06  7:40 ` Kai Krakow
     [not found]   ` <CAD8hrTPmcuac6wtJPR=pHES1gQJ2Q+ft8OmNOOKopMQKmV+8qA@mail.gmail.com>
2012-02-06  8:42     ` Kai Krakow [this message]

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='CAMthOuO-_fB41=0AdzNaUt_U6D+7ueav5MK7mgAOdeiS2GmM0w@mail.gmail.com' \
    --to=hurikhan77+btrfs@gmail.com \
    --cc=fahhem2@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).