xfs
[Top] [All Lists]

Re: recover file after cat /dev/null > file

To: Jim Cistaro <jim.cistaro@xxxxxx>
Subject: Re: recover file after cat /dev/null > file
From: Steve Lord <lord@xxxxxxx>
Date: Fri, 28 Sep 2001 15:04:26 -0500
Cc: linux-xfs@xxxxxxxxxxx
Comments: In-reply-to Jim Cistaro <jim.cistaro@xxxxxx> message dated "Fri, 28 Sep 2001 12:50:28 -0700."
References: <3BB4D484.3020806@xxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
> if /dev/null has been catted over an existing file,
> is there any way to recover data based on inodes (or anything else)?
> 
> Nothing else has been written to disk since so data should still exist.
> 

Yes, but the tricky part is where. You overwrote the inode and
freed it's extents, the data is somewhere in the freespace on
the filesystem, but locating it is not going to be easy.

Unless the file was very large, or the filesystem fairly full,
the chances are the data is located in the same allocation
group as the inode, but really I cannot tell you more than
that.

Sorry

   Steve


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