From: "Manish Katiyar" <mkatiyar@gmail.com>
To: "Lars Täuber" <taeuber@bbaw.de>
Cc: linux-ext4@vger.kernel.org
Subject: Re: undelete still opened file
Date: Fri, 17 Oct 2008 16:03:11 +0530 [thread overview]
Message-ID: <ea11fea30810170333n4ba9a681l7b64862834899aac@mail.gmail.com> (raw)
In-Reply-To: <20081017120852.1f04dc36.taeuber@bbaw.de>
On Fri, Oct 17, 2008 at 3:38 PM, Lars Täuber <taeuber@bbaw.de> wrote:
> Hi there!
>
> If this should be the wrong mailing list please excuse me but I didn't find any better suiting.
> I just subscribed after unsuccessfully searching on the net for an answer to my question.
>
> Is it possible to undelete an accidentally deleted file that is still opened by a process?
> As far as I know the file is not really deleted as long there is a file descriptor connected to the file.
> I thought about something in connection with /proc/####/fd/# .
> Is there any chance to get the file back to normal?
To some extent yes......
>
> - Linux 2.6.[12]x
> - ext3 or nfs (should be independent of fs, wouldn't it?)
It is tightly coupled with the filesystem. So depending on your
filesystem you may or may not get it.
LOGFS (or any log structured file system) : They generally have
snapshots or some kind of file versioning. So you can retreive it from
there.
ext2 : After deletion ext2 doesn't zero the block pointers. So it is
possible to get it from there using debugfs.
ext3 : Search google for "Carlo wood + ext3grep"
ext4 : I don't know of any method ...
You can try the /proc/****/fd/** approach . It has worked for me in
past......but that was for a running binary. I am not sure about
shellscript kind of thing. There are some other tools too to recover ,
unfortunately I don't remember the name but google should be good
enough.
Thanks -
Manish
>
>
> Thanks and best regards.
> Lars
>
>
> PS: Sorry for my english.
> --
> 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
>
--
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
next prev parent reply other threads:[~2008-10-17 10:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-17 10:08 undelete still opened file Lars Täuber
2008-10-17 10:33 ` Manish Katiyar [this message]
2008-10-17 12:33 ` Lars Täuber
2008-10-17 13:24 ` Theodore Tso
2008-10-17 13:39 ` Lars Täuber
2008-10-17 14:02 ` Manish Katiyar
2008-10-17 16:14 ` Theodore Tso
2008-10-20 7:23 ` Lars Täuber
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=ea11fea30810170333n4ba9a681l7b64862834899aac@mail.gmail.com \
--to=mkatiyar@gmail.com \
--cc=linux-ext4@vger.kernel.org \
--cc=taeuber@bbaw.de \
/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