linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bernd Schubert <bernd.schubert@fastmail.fm>
To: Ted Ts'o <tytso@mit.edu>
Cc: Rudolf Zran <rudolfzran@yahoo.com>,
	"linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>,
	"debian-user@lists.debian.org" <debian-user@lists.debian.org>
Subject: Re: Restoring filenames from partly damaged ext4-filesystem
Date: Fri, 10 Feb 2012 23:17:17 +0100	[thread overview]
Message-ID: <4F35976D.4090309@fastmail.fm> (raw)
In-Reply-To: <20120210213237.GF5381@thunk.org>

On 02/10/2012 10:32 PM, Ted Ts'o wrote:
> On Fri, Feb 10, 2012 at 06:36:52PM +0000, Rudolf Zran wrote:
>>>> * "fsck.ext4 -b $SBOK -B 4096 -v -y /dev/loop0" recoveres after a long time.
>>>>    Filesystem is mountable. Root is empty besides lost+found folder, which
>>>>    contains about 300GB mostly useless data: Millions of files with wrong
>>>>    permissions, useless names and some random content.
>>
>>> I'd do this by making a copy of the file system first, of course….
>
> I would have expected at least some subdirectories from your directory
> hierarcy that contained useful content.
>
> Just to set expectations, things that you might do that tried to look
> for directory blocks, etc., *might* give you more useful filenames as
> opposed to random inode numbers in lost+found, but it's unlikely to
> recover any more *files*.  It sounds most of your files were located
> in part of the inode table that got smashed, and so short of looking
> at each data block to find useful bits, I doubt spending a lot of time
> on trying to use or create more recovery tools based on file system
> metadata is likely to result in more data getting recovered.
>

You do not need inode tables to get back a basic directory structure. 
Assigning directory blocks with '.' and '..' and then with real content 
provide the file system structure and also inode-number to name 
translation. Even better would be if secondary blocks also would have 
'.' and '..'.


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

  reply	other threads:[~2012-02-10 22:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-09 16:29 Restoring filenames from partly damaged ext4-filesystem Rudolf Zran
2012-02-09 18:50 ` Andreas Dilger
2012-02-09 21:22   ` Rudolf Zran
2012-02-10 13:41     ` Bernd Schubert
2012-02-10 17:07       ` Rudolf Zran
2012-02-10 22:20         ` Bernd Schubert
2012-02-09 23:20 ` Walter Hurry
2012-02-10 18:02 ` Theodore Tso
2012-02-10 18:36   ` Rudolf Zran
2012-02-10 21:32     ` Ted Ts'o
2012-02-10 22:17       ` Bernd Schubert [this message]
2012-02-11 17:33 ` [SOLVED] (was "Re: Restoring filenames from partly damaged ext4-filesystem") Rudolf Zran
2012-02-11 18:30   ` Ted Ts'o
2012-02-11 18:47     ` Andreas Dilger
2012-02-11 18:50       ` Ted Ts'o

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=4F35976D.4090309@fastmail.fm \
    --to=bernd.schubert@fastmail.fm \
    --cc=debian-user@lists.debian.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=rudolfzran@yahoo.com \
    --cc=tytso@mit.edu \
    /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).