[Leaplist] recover deleted file

Randall Perry randallp at hcrn.info
Tue Mar 6 19:53:29 EST 2007


I was told that a user 'backup' died at 84gig before it finished.
I said, no problem, let's start again.
So rm -f mybigbadbackupfile to remove it and I ask him to try it again.

Problem is, it WASN'T the backup file.  It was in fact a live archive
that was being mounted from a laptop over the network, using OSX based
'backup' software.  So the archive file on the remote server was
actually holding one and only copies of files being worked on.
(so I said, "if that's the backup, where's the ORIGINAL"...uh, that was it).

So as soon as I heard this I killed the rm process in hopes of
stopping the carnage of rm.
The file size went from 84gig to 1.6gig.  The user opened the archive
up remotely and saw some files...but MUCH work was gone.  (oh, and
there are NO actual backups of the data..just the original file on the
backup server----and this isn't the first time someone has wiped out
that backup file).  I immediately unmounted the drive.

Thankfully, this 400gig drive is a single ext2 partition for data only.
(so there are several methods for recovery--unlike ext3 or reiserfs
which are more difficult to recover).

I have mc already running on this CentOS derivative and ran the
undelete utility (within mc).
I see some inodes that look like they should be part of the file, but
remember that I killed the rm process so deletion wasn't complete.  I
see a large 1.6gig chunk that seems to be it.
That's far from the  84gig that single file is supposed to be.

I am wondering if I should finish off the file with rm and go back to
inode rebuilding under mc.  Are there file limitations (LFS) under mc
4.6.1?

I wish I had another 400gig spare to dd and play with, but that would
involve shifting some 300 gig drives around to get a 400gig free.  I
don't want to dd over the network to an LVM with more space because
that would take FOREVER.

I can't just 'grep the raw device' as these are Adobe Illustrator and
Photoshop renderings...not some simple text strings.

Anyone familiar with e2undel? debugfs ?


Thoughts?



-- 
*:-.,_,.-:*'``'*:-.,_,.-:*'``'*:-.,_,.-:*'``'*:-.,_,.-:*'``'*:-.
    Randall Perry
    Hope Crisis Response Network
  www.hcrn.info


More information about the Leaplist mailing list