[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Restoration of deleted file ?



On Wed, 7 Apr 1999, uri wrote:

.|Is it possible to restore somehow deleted file ?

Yes, but that depends that you did not wrote to the same place on 
the disk. what you should do is use grep for words in the file you
can remmeber the the device. i.e if you deleted your passwd file and your
root partition is /dev/hda1 then the appropriate command sould be
egrep -A 100 -B 100 "^root:" /dev/hda1 > /tmp/restore.passwd
then, in all the garbage in /tmp/restore.passwd you should be able to find 
the appropriate /etc/passwd line.
There is a HOWTO or a tuturial for that. i think you can find it somewhere
under www.linux.org.uk, probebly elsewere too.

Cheers,
Guy.

--
Guy Cohen <guy@spice.org.il>