recover deleted file in unix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers recover deleted file in unix
# 1  
Old 08-29-2007
recover deleted file in unix

hi
after using rm command how to recover the deleted file
# 2  
Old 08-29-2007
Mmmm.... Actually, I think that the only way for recovering the file is to restore it from a backup (if you have one!)

Maybe if you tell us your OS specification someone more skilled could correct my belief Smilie
# 3  
Old 08-29-2007
The best way to recover a file in unis is to restore itr from backup,so do have a backup of all the files needed further.
Otherwise it's a jpb of very skiiled and experienced person with luck.

Thanks
Namish
# 4  
Old 08-30-2007
Hi,

i think in UNIX we can recover the deleted file when the UNIX system is in single user mode. if the UNIX system is in multi user mode them we can't recover the delete files.

using "wall" and "init l" commands we can recover the deleted files which the server is in single user mode.



Thanks,
Siva.PSmilie
Bangalore
# 5  
Old 08-30-2007
Quote:
Originally Posted by psiva_arul
i think in UNIX we can recover the deleted file when the UNIX system is in single user mode. if the UNIX system is in multi user mode them we can't recover the delete files.
Unless this somehow prevents io buffers from being written to disk, I don't see how single user mode would make a difference.
# 6  
Old 08-30-2007
I suggest adding immunity to files or folders that you feel as important!!
so that you will not accidentally delete those files...again if you are a root user nothing can stop Smilie root is god on the unix/linux system!!

add immunity to your file this way:
chattr +i file
if you are a non-root user use "sudo chattr +i file"

to remove immunity "chattr -i file"

this should help you in accidental deletions!

-ilan
# 7  
Old 08-30-2007
This has been asked a few times before. I have never tried this utility, but it looks interesting. It's called "unrm".

freshmeat.net: Project details for unrm

By the way, did you do an "ls -la" to see if you had a hidden "filename.ext~" backup of it?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to recover the deleted file in Linux?

hi, i deleted one file from linux please let me know, if we can recover it ? if yes, pls let me know the steps to do.. (3 Replies)
Discussion started by: raghur77
3 Replies

2. UNIX for Dummies Questions & Answers

How to recover deleted file?

Hi All By mistake i have deleted some file in a directory, is there any way to get it back in Unix( i am using sh ) (2 Replies)
Discussion started by: parthmittal2007
2 Replies

3. Solaris

How to recover deleted file in Solaris?

dear all please tell me how can i recover deleted file in solaris. i am removing file with rm command. thanks in advance. (3 Replies)
Discussion started by: nikhil kasar
3 Replies

4. Solaris

how to recover from deleted etc in solaris 9

Recently our Server Room got burnt and we lost everything including a sunfire V880 server. I had a backup and restored it on our 2nd server. I mistakenly restored the etc folder from the burnt server too. After rebooting the 2nd server I can't get the root directory and other volumes mounting. I... (11 Replies)
Discussion started by: rahmantanko
11 Replies

5. Shell Programming and Scripting

Need to Recover Deleted Files

Hi, By mistake, executed the following command : rm -rf * and ALL files got deleted. But I need to get back these files as they are very very important. Please help me how to recover this file. Its Urgent for me please. Thanks in advance. (6 Replies)
Discussion started by: unx100
6 Replies

6. UNIX for Dummies Questions & Answers

how to recover deleted files in unix

Hi Experts, by mistake i deleted some files that are very important to the project. is there any way that i can recover those files,there is no backup for that but the details of the file we know. This will be a great help. Thanks (5 Replies)
Discussion started by: namishtiwari
5 Replies

7. Solaris

How to Recover a deleted file in SOLARIS

Anybody know how to recover a deleted file in unix Please help (3 Replies)
Discussion started by: pmsuper
3 Replies

8. AIX

recover deleted files

How to recover deleted files in AIX ? (1 Reply)
Discussion started by: vjm
1 Replies
Login or Register to Ask a Question