Linux XFS filesystem development
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: "Bc. Martin Šafránek" <safranek@ntc.zcu.cz>
Cc: linux-xfs@vger.kernel.org
Subject: Re: Question: Is it possible to recover deleted files from a healthy XFS filesystem?
Date: Mon, 5 May 2025 21:34:14 -0700	[thread overview]
Message-ID: <aBmRRqCbqKX0bMln@infradead.org> (raw)
In-Reply-To: <aBmQaN5EAmwfVYaP@infradead.org>

On Mon, May 05, 2025 at 09:30:32PM -0700, Christoph Hellwig wrote:
> A long time ago there was a simple xfs_irecover tool to scan blocks
> for inode signatures.  We never managed to port it to use libxfs and
> the code repository for it seems to have disappeared.
> 
> But in general, yes you can scan for inode clusters that have not been
> reused, but it is very low-level and dangerous if you don't know what
> you are doing.

If you are looking for specific file types, PhotoRec
(https://www.cgsecurity.org/wiki/PhotoRec) might also be an option.


      reply	other threads:[~2025-05-06  4:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <_ptC29dJ9nfKvxmWTJAEDaRH7gGc9qNbSz6zJBbEHl7ayyih4vrwmVznoGN1Mu_Luiru-PDMk_anzdCDzzUQlw==@protonmail.internalid>
2025-05-05 12:42 ` Question: Is it possible to recover deleted files from a healthy XFS filesystem? Bc. Martin Šafránek
2025-05-05 19:48   ` Carlos Maiolino
2025-05-05 20:39   ` Carlos E. R.
2025-05-06  4:30   ` Christoph Hellwig
2025-05-06  4:34     ` Christoph Hellwig [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=aBmRRqCbqKX0bMln@infradead.org \
    --to=hch@infradead.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=safranek@ntc.zcu.cz \
    /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