The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to undelete pratim09 UNIX for Advanced & Expert Users 1 05-10-2008 02:04 AM
Undelete files in Unix misenkiser UNIX for Dummies Questions & Answers 10 12-20-2006 01:31 PM
Undelete files Bacchus Filesystems, Disks and Memory 0 05-25-2006 07:13 AM
Reading file names from a file and executing the relative file from shell script anushilrai Shell Programming and Scripting 4 03-10-2006 02:25 AM
undelete krishna UNIX for Advanced & Expert Users 3 01-08-2002 03:14 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-01-2008
Registered User
 

Join Date: Jan 2008
Posts: 6
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
Reply With Quote
Forum Sponsor
  #2  
Old 09-01-2008
Smiling Dragon's Avatar
Disorganised User
 
Join Date: Nov 2007
Location: New Zealand
Posts: 734
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.
Reply With Quote
  #3  
Old 09-01-2008
Registered User
 

Join Date: Mar 2007
Posts: 15
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
Reply With Quote
  #4  
Old 09-02-2008
Smiling Dragon's Avatar
Disorganised User
 
Join Date: Nov 2007
Location: New Zealand
Posts: 734
Quote:
Originally Posted by yogi_raj_143 View Post
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.
Reply With Quote
  #5  
Old 09-04-2008
Registered User
 

Join Date: Sep 2008
Location: Netherlands
Posts: 8
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)
Reply With Quote
  #6  
Old 09-04-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
I think the short answer is " game over, unless you are into heavy wizardry".
Reply With Quote
  #7  
Old 09-05-2008
Registered User
 

Join Date: Mar 2008
Posts: 9
Use this link

TestDisk - CGSecurity

This will help u for recover the data.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 01:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0