All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean-Denis Girard <jd.girard@sysnux.pf>
To: linux-btrfs@vger.kernel.org
Subject: Re: Undelete files / directory
Date: Thu, 28 Aug 2014 11:23:12 -1000	[thread overview]
Message-ID: <lto6k2$ebq$1@ger.gmane.org> (raw)
In-Reply-To: <883EA056-F115-4254-9412-622C07170707@colorremedies.com>

Le 28/08/2014 10:21, Chris Murphy a écrit :
> What do you get for 

[root@x220 ~]# btrfs-debug-tree -R /dev/mapper/home

root tree: 115230801920 level 1
chunk tree: 131072 level 1
extent tree key (EXTENT_TREE ROOT_ITEM 0) 115230806016 level 2
device tree key (DEV_TREE ROOT_ITEM 0) 115191881728 level 0
fs tree key (FS_TREE ROOT_ITEM 0) 115215908864 level 3
checksum tree key (CSUM_TREE ROOT_ITEM 0) 115230842880 level 3
uuid tree key (UUID_TREE ROOT_ITEM 0) 115196645376 level 0
data reloc tree key (DATA_RELOC_TREE ROOT_ITEM 0) 115623051264 level 0
btrfs root backup slot 0
        tree root gen 138441 block 115220434944
                extent root gen 138441 block 115217117184
                chunk root gen 73727 block 131072
                device root gen 130645 block 115191881728
                csum root gen 138441 block 115216838656
                fs root gen 138441 block 115215908864
                26813235200 used 42947575808 total 1 devices
btrfs root backup slot 1
        tree root gen 138442 block 115230801920
                extent root gen 138442 block 115230806016
                chunk root gen 73727 block 131072
                device root gen 130645 block 115191881728
                csum root gen 138442 block 115230842880
                fs root gen 138441 block 115215908864
                26813235200 used 42947575808 total 1 devices
btrfs root backup slot 2
        tree root gen 138439 block 115231158272
                extent root gen 138439 block 115230871552
                chunk root gen 73727 block 131072
                device root gen 130645 block 115191881728
                csum root gen 138440 block 115231473664
                fs root gen 138440 block 115231453184
                26818527232 used 42947575808 total 1 devices
btrfs root backup slot 3
        tree root gen 138440 block 115210838016
                extent root gen 138440 block 115233878016
                chunk root gen 73727 block 131072
                device root gen 130645 block 115191881728
                csum root gen 138441 block 115216838656
                fs root gen 138441 block 115215908864
                26813243392 used 42947575808 total 1 devices
total bytes 42947575808
bytes used 26813235200
uuid ca93d247-9076-4aa7-862b-a6add3a5c16c
Btrfs v3.14.2

So this seems fine; why is btrfs-find-root not working for me?

Then I tried to use the root with oldest generation:
[root@x220 ~]# btrfs restore -t 115231158272 -v /dev/mapper/home
--path-regex '^/(|jdg(|/tmp(|/.*)))$' .

It did recover many files / directories, but unfortunately not my
photos. Does it mean I discovered my mistake and unmounted the partition
too late, and the info is lost?

I made a dump of the device to another computer (using dd), I think the
data are still here (hexedit).

What else could I try?


Thanks,
Jean-Denis Girard


  reply	other threads:[~2014-08-28 21:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-27 18:04 Undelete files / directory Jean-Denis Girard
2014-08-28 10:04 ` Duncan
2014-08-28 16:25   ` Chris Murphy
2014-08-28 17:04     ` Jean-Denis Girard
2014-08-28 20:21       ` Chris Murphy
2014-08-28 21:23         ` Jean-Denis Girard [this message]
2014-08-28 21:39           ` Chris Murphy
2014-08-28 21:30       ` Chris Murphy
2014-08-29  7:40       ` Konstantinos Skarlatos
2014-08-30 20:12         ` Jean-Denis Girard
2014-08-30 21:26           ` Jean-Denis Girard
2014-09-01 16:27             ` Marc MERLIN
2014-09-01 17:00               ` Konstantinos Skarlatos
2014-09-02  4:08                 ` Jean-Denis Girard
2014-09-02  4:12                   ` Marc MERLIN
2014-09-02  9:00                 ` David Sterba
2014-08-28 21:51 ` Chris Murphy
2014-08-28 22:49   ` Jean-Denis Girard

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='lto6k2$ebq$1@ger.gmane.org' \
    --to=jd.girard@sysnux.pf \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.