How to get deleted files in Linux

Contributor
10Oct2006,18:01   #1
sharmila's Avatar
Hi all,
In Linux,if we delete a file using 'rm' is there any way to get it back without using any 3rd party tools?

Thanks in advance,
sharmila.
Contributor
11Oct2006,10:45   #2
sharmila's Avatar
I got the answer..
I used function..
create a dir Trash and move all the deleted files into it.
del()
{
mv $1 ~/Trash/
}

Regards,
sharmila.
Newbie Member
9Nov2006,10:18   #3
velumurugesan's Avatar
please explain me
i need to get back my all deleted files
Contributor
10Nov2006,18:38   #4
sharmila's Avatar
Hi velumurugesan,
I don't know how to get already deleted files.

Regards,
sharmila.
Newbie Member
11Nov2006,12:12   #5
velumurugesan's Avatar
ok sharmila,
thanks for your reply
are you interested in this Topic(Linux administration) further
Newbie Member
1Mar2007,14:39   #6
Svaths's Avatar
Hi,

If you have atleast 1 other process using an already deleted file, You can retrieve it using the /proc filesystem and lsof

Plz go through this detailed exp:
http://www.linux.com/print.pl?sid=06/10/30/1652211



Thanks & Regards,
Svaths
Go4Expert Member
15May2007,23:30   #7
fsakalos's Avatar
If you once delete it, you have no chance to get it back. You would need to make backups of that files.
Newbie Member
15May2008,10:24   #8
jhonstack's Avatar
Quote:
Originally Posted by sharmila
Hi all,
In Linux,if we delete a file using 'rm' is there any way to get it back without using any 3rd party tools?

Thanks in advance,
sharmila.
Hi sharmila

Yes you can recover it. There is a method to recover it.May be this method works for you can check it out this link
http://linux-recovery.blogspot.com/
Contributor
22May2008,10:56   #9
sharmila's Avatar
Hi Johnstack,
Thanks for the responce. I didn't tried but it is very much informative..

Regards,
sharmila
Contributor
22May2008,11:09   #10
sharmila's Avatar
Quote:
Originally Posted by Svaths
Hi,

If you have atleast 1 other process using an already deleted file, You can retrieve it using the /proc filesystem and lsof

Plz go through this detailed exp:
http://www.linux.com/print.pl?sid=06/10/30/1652211



Thanks & Regards,
Svaths
Hi Svaths,
The link which was mentioned here is not opening.. Will try to get the info using google.. Thanks for the reply.

Regards,
Sharmila