xfs
[Top] [All Lists]

RE: How to reconstruct an xfs filesystem and restore all datas?

To: "'Chris Wedgwood'" <cw@xxxxxxxx>
Subject: RE: How to reconstruct an xfs filesystem and restore all datas?
From: "Scott Liu" <scottl@xxxxxxxxxxxxxx>
Date: Wed, 18 Jun 2003 10:17:30 +0800
Cc: <linux-xfs@xxxxxxxxxxx>, "'Grace Ho'" <graceh@xxxxxxxxxxxxxx>, "'Jenny'" <jennyl@xxxxxxxxxxxxxx>, "'Myst Lin \(E-mail\)'" <mystl@xxxxxxxxxxxxxx>, "'Peter'" <peterh@xxxxxxxxxxxxxx>
Importance: Normal
In-reply-to: <20030617130438.GB3510@xxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: <scottl@xxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Dear Chris,

Thanks.
But I don't know how to do "a heuristic to detect the data" and then recover 
the datas?
May you describe this more detail and let us know the methods of this?

Best Regards,
Scott Liu

-----Original Message-----
From: Chris Wedgwood [mailto:cw@xxxxxxxx]
Sent: Tuesday, June 17, 2003 9:05 PM
To: Scott Liu
Cc: linux-xfs@xxxxxxxxxxx; 'Grace Ho'; 'Jenny'; 'Myst Lin (E-mail)'; 'Peter'
Subject: Re: How to reconstruct an xfs filesystem and restore all datas?


On Tue, Jun 17, 2003 at 06:12:57PM +0800, Scott Liu wrote:

> A partition created of xfs filesystem and have a lot of datas in.
> BUT remiss, I done "mkfs.xfs" of this partition and then I LOST all
> datas.  How to reconstruct this xfs filesystem and restore all
> datas?

mkfs.fs will have obliterated most if not all useful metadata making
recovery painful at best.  It depends what kind of data you have there
and how fragmented it was --- but you might have a chance of recovery
for some of it if you can use a heuristic to detect the data your
after and hope that it's mostly contiguous.

I've done this several times for people who've trashed disks for of
images mostly because asynchronous writes ensure most files are
not-fragmented and most images (jpegs) are easy to scan-for and
recover.


  --cw


<Prev in Thread] Current Thread [Next in Thread>