UNDELETE a file


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users UNDELETE a file
# 1  
Old 09-01-2008
UNDELETE a file

Hi,

In tcsh, I mistakenly deleted some files under a dir with rm *
Is there any way by which I can recover those files (without restoring to an earlier backup point) ?
I mean any command like undelete or anything similar
# 2  
Old 09-01-2008
If you have any programs running that still have the files open or if you have any other hardlinks to the files, they can be recovered.

If the data is of sufficient value to warrant it, you can ship the disk to a data recovery specialist but these people generally charge a great deal for this sort of work.

Otherwise I'm afraid you are looking at a restore from backup as your only other option.
# 3  
Old 09-02-2008
Manier times the editor you use (I use vi & emacs) creates it own temporay backup files. If you can not recover the original one, you can use the backup files. They normally contains the data till your last save
# 4  
Old 09-02-2008
Quote:
Originally Posted by yogi_raj_143
Manier times the editor you use (I use vi & emacs) creates it own temporay backup files. If you can not recover the original one, you can use the backup files. They normally contains the data till your last save
It would depend heavily on the name of the backup file though. Emacs just adds a tilde (~) character to the name, so that would have been also deleted by an rm *. Generic vi doesn't save backups but there's a stack of varients out there, if it happens to save to a .blah file, those would have been preserved.
# 5  
Old 09-04-2008
If the process is still running and did not yet close the file descriptor you can recover it directly via the file descriptor in /proc (on linux)
# 6  
Old 09-04-2008
I think the short answer is " game over, unless you are into heavy wizardry".
# 7  
Old 09-05-2008
Use this link

TestDisk - CGSecurity

This will help u for recover the data.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies

2. Solaris

Undelete, backup inodes

is there a way to backup all inodes? (could that help with undeleting files?) (9 Replies)
Discussion started by: orange47
9 Replies

3. Shell Programming and Scripting

Compare 2 text file with 1 column in each file and write mismatch data to 3rd file

Hi, I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file. File1 - file2 = file3 wc -l file1.txt 58112 wc -l file2.txt 55260 head -5 file1.txt 101214200123 101214700300 101250030067 101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies

4. Shell Programming and Scripting

Match list of strings in File A and compare with File B, C and write to a output file in CSV format

Hi Friends, I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving... File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies

5. SCO

Versioning through undelete

Hi , I am using SCO openserver realease 3.2 and tried to test versioning on a directory with undelete -s . The command executes well but it is not creating any versions of the files in it. I have also setted versioning options via filesystem and then remounted it but of ... (0 Replies)
Discussion started by: dextergenious
0 Replies

6. UNIX for Advanced & Expert Users

How to undelete

Hi Is there a way by which I can recover the last deleted file file from a folder. OR I had a file in a path .(i didnt notice the size at that time ) I tried ftp that file to my windows but got file of zero size. I want to check whether the file was already empty when I tried ftping it... (1 Reply)
Discussion started by: pratim09
1 Replies

7. UNIX for Dummies Questions & Answers

Undelete files in Unix

Hi Is there any way to restore files accidentally deleted in Unix (other than rm -i) (10 Replies)
Discussion started by: misenkiser
10 Replies

8. Filesystems, Disks and Memory

Undelete files

Right, a mate of mine screwed up today and deleted the entire contents of a directory and he really needs to get the files back. He's using Red Hat Enterprise Edition 4. The files were deleted using rm *. He can't remember if the hard drive was formatted using ext2 or ext3. Anybody have any idea... (0 Replies)
Discussion started by: Bacchus
0 Replies

9. UNIX for Advanced & Expert Users

undelete

Hi All, I just given $rm abc.pc, I don't have backup also. is there any way to recover? thanks in advance krishna (3 Replies)
Discussion started by: krishna
3 Replies
Login or Register to Ask a Question