[plug] undeleting files in xfs, please help !

Russell russellsteicke at gmail.com
Sun Mar 18 15:23:10 WST 2007


On 3/18/07, Kev <kdownes at tpg.com.au> wrote:
> Jason wrote:
> > Well, I came across a program called "photorec" and it's awesome.
> >
> > It ended up recovering all the files I had accidentally deleted and then
> > some!
> >
> > I strongly recommend you try it out if you ever delete something and
> > want to recover it.  It is able to recover a large number of different
> > file types (rar, arj, zip, doc, jpg, mpg etc etc).
> >
> > Jason.
>
> It sounds like pure gold.  Does it only work with xfs or will it cover
> other file systems.  For instance, is there similar/same for ext3 or
> reiserfs?

You can often recover data with simple unix tools.  I have recovered
someone's tax spreadsheets from a many-gigabyte disk image by merely
searching the image for the bytes that mark the beginning of an MS
Office file at the start of every 512 byte boundary (reasoning that I
couldn't reliably predict the cluster size and offset as the boot
sector and FAT had been trashed).  Whenever the marker was found, I
saved the next few hundred kilobytes.

In that case, I was lucky that every file was contiguous on the disk,
probably because they were relatively small files.  For bigger files
or files on a fragmented disk it wouldn't have worked so well.

(I really should have saved the shell script I used to do that...)

Perhaps photorec does much the same thing?  I have used a similar tool
for photo recovery, but can't remember its name.


-- 
Virus found in this message.



More information about the plug mailing list