* Question: Is it possible to recover deleted files from a healthy XFS filesystem?
@ 2025-05-05 12:42 ` Bc. Martin Šafránek
2025-05-05 19:48 ` Carlos Maiolino
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Bc. Martin Šafránek @ 2025-05-05 12:42 UTC (permalink / raw)
To: linux-xfs
Hello everyone,
I have a question regarding XFS and file recovery.
Is there any method — official or unofficial — to recover deleted files from a healthy, uncorrupted XFS filesystem? I understand that XFS does not support undeletion, but I'm wondering if any remnants of metadata might still allow partial or full recovery, perhaps under specific conditions.
If anyone has insights, tools, or suggestions, I’d be very grateful.
Thank you for your time.
Best regards,
Martin Safranek
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question: Is it possible to recover deleted files from a healthy XFS filesystem?
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
2 siblings, 0 replies; 5+ messages in thread
From: Carlos Maiolino @ 2025-05-05 19:48 UTC (permalink / raw)
To: Bc. Martin Šafránek; +Cc: linux-xfs
On Mon, May 05, 2025 at 02:42:22PM +0200, Bc. Martin Šafránek wrote:
> Hello everyone,
>
> I have a question regarding XFS and file recovery.
>
> Is there any method — official or unofficial — to recover deleted files from a healthy, uncorrupted XFS filesystem? I understand that XFS does not support undeletion, but I'm wondering if any remnants of metadata might still allow partial or full recovery, perhaps under specific conditions.
>
> If anyone has insights, tools, or suggestions, I’d be very grateful.
>
> Thank you for your time.
It all depends on if the file's data have been overwritten or not. We have no
tools to undelete files, but there are a few tools on the market for that.
I've successfully used this tool in the past: https://www.ufsexplorer.com
But I am by no means associated with them, and I have no responsibility to
whatever happens to your data.
I know about other tools too, but I have no experience with them.
>
> Best regards,
> Martin Safranek
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question: Is it possible to recover deleted files from a healthy XFS filesystem?
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
2 siblings, 0 replies; 5+ messages in thread
From: Carlos E. R. @ 2025-05-05 20:39 UTC (permalink / raw)
To: Linux-XFS mailing list
[-- Attachment #1.1: Type: text/plain, Size: 959 bytes --]
On 2025-05-05 14:42, Bc. Martin Šafránek wrote:
> Hello everyone,
>
> I have a question regarding XFS and file recovery.
>
> Is there any method — official or unofficial — to recover deleted files from a healthy, uncorrupted XFS filesystem? I understand that XFS does not support undeletion, but I'm wondering if any remnants of metadata might still allow partial or full recovery, perhaps under specific conditions.
>
> If anyone has insights, tools, or suggestions, I’d be very grateful.
>
> Thank you for your time.
There are tools that search the disk blocks trying to find blocks that
belonged to a file that was deleted. The first step would be to set that
filesystem to read only, and hopefully, create an image.
I have never tried on an XFS filesystem, so I can't recommend any tool.
Tools need to know the type of file you want to find.
--
Cheers / Saludos,
Carlos E. R.
(from 15.6 x86_64 at Telcontar)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question: Is it possible to recover deleted files from a healthy XFS filesystem?
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
2 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2025-05-06 4:30 UTC (permalink / raw)
To: Bc. Martin Šafránek; +Cc: linux-xfs
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question: Is it possible to recover deleted files from a healthy XFS filesystem?
2025-05-06 4:30 ` Christoph Hellwig
@ 2025-05-06 4:34 ` Christoph Hellwig
0 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2025-05-06 4:34 UTC (permalink / raw)
To: Bc. Martin Šafránek; +Cc: linux-xfs
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-05-06 4:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox