Directory got deleted

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support Directory got deleted
# 8  
Old 02-15-2011
regarding to this issue...
isn't it possible to get the folder with contents back if nothin overwrote the area?
I mean with help of the vector table this could maybe be undone. I know no simple commands, but there are some purchaseable software solutions to to this.
Maybe also simple commands exists and an expert knows this?
# 9  
Old 02-15-2011
Quote:
Originally Posted by unknown7
Maybe also simple commands exists and an expert knows this?
Would you consider a filesystem capable of arbitrary undeletion secure? There's no general purpose UNIX undelete and there really couldn't be. Hopefully his sysadmin has backups.
# 10  
Old 02-16-2011
come on... why you write such things?

just searched with google and directly found a lot of information about this topic.
Unfortunately it's not allowed for me to post URLs (below 5 posts) - but i assume you know how to use google. (if not - search words for me were "unix get deleted file" - i took 3rd from top)

There is for example Midnight Commander mentioned.
It's GNU (free) software, which runs on UNIX OS.
Quote:
Midnight Commander can be obtained at ibiblio.org/mc/
so it's possible to get deleted files back by knownleadge of last date used/created...
It's just not that easy as it is with windows OS.

---------- Post updated at 03:04 PM ---------- Previous update was at 02:57 PM ----------

if you still need to get it back and it's important you may look for GNU free licensed program:
"midnightcommander"

can sometimes undelete files
# 11  
Old 02-16-2011
Mostly because it's true:
  • Not general-purpose. Only works for ext2 (and maybe 3) which is becoming rarer these days.
  • Instructions refer to decades-old linux versions -- not promising.
  • Most importantly it does not work using the instructions given!
People looking for mc undelete tend to get suggested the "recover" utility suite instead but only if they have ext2/ext3 partitions which, again, are becoming rarer these days. We know nothing about his filesystem, in this ignorance anything we can suggest has very good odds of not helping or making things worse. Hence there's no general-purpose solution. We need more information to help.
# 12  
Old 02-16-2011
yeah I admit... it looks like it was not that important, because he does not reply...

I just knew that there were some ways/changes to get files back - not only on windows systems, but also on Unix. Just wanted to help and asked for more knownledged people bacause they may have clear solutions. The questions is frequently asked Smilie

So the program I mentioned is not that often usable but may help if you are lucky. Smilie

Last edited by unknown7; 02-16-2011 at 01:15 PM..
# 13  
Old 02-16-2011
You have to be very careful giving advice about data recovery because bad advice can make the problem worse.
# 14  
Old 02-16-2011
also found:
grep -i -a -B10 -A100 'myTextFile' /dev/sda1 > myRecoveryFile.txt
vi myRecoveryFile.txt

but could not run these options on my sun os and if you are right this shouldn't work?!
But maybe some ppl want to try it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Directory cannot be deleted!!!

Friends, I have accidently, as root, created a directory gabsf under /home. Now I cannot delete this thing, I have tried rm and rmdir, as well as explicit path name, but it is really undeleteable. Here is what ls -l says. # ls -l /home total 6 drwxr-xr-x 2 dawood dawood 2 Sep 5... (3 Replies)
Discussion started by: gabam
3 Replies

2. UNIX for Advanced & Expert Users

recovering a deleted directory

I accidentally deleted a very important directory today with this rm -r. What would be the recommended way to recover my directory? After a lot of googleing I have seen these choices. Could I get some recommendations please? Testdisk Photorec- Doesn't recover file name like I would like. ... (10 Replies)
Discussion started by: cokedude
10 Replies

3. Shell Programming and Scripting

Last column is getting deleted

Hi, I am having a problem in the below code:-. $ cat x.csv baseball,NULL,8798765,Most played,0,5,12367,NULL,NULL,98,67,Reason is not sufficient baseball,NULL,8928192,Most played,0,4,76893,NULL,RAW,54,78,Reason is not sufficient baseball,NULL,5678945,Most played,9,2,1,6,NULL,6789,123,Reason... (4 Replies)
Discussion started by: scripter12
4 Replies

4. UNIX for Advanced & Expert Users

deleted all files - rm *

Hi All, I am using Fedora Core and Windows Xp. I deleted all the files from root directory. When i am trying to restart the computer it showing some grub > prompt. What i will do ? I have lots of data in XP OS. Please help me i used # rm * (8 Replies)
Discussion started by: pritish.sas
8 Replies

5. UNIX for Dummies Questions & Answers

deleted /usr

I accidentally deleted the usr on/. How can I start the server again? (5 Replies)
Discussion started by: rahmantanko
5 Replies

6. Solaris

Directory should not be deleted, But the contents can be

Hi Guys, I have an user's home directory set to /home/A And A contains the following directories B & C Is there some way in solaris by which i can prevent the directories B and C from getting deleted by the user but the contents of the directories B & C can be deleted ? Also i have... (2 Replies)
Discussion started by: localhost
2 Replies

7. UNIX for Dummies Questions & Answers

how to know who has deleted the file.

Hi, We have a file which needs supper user previleges to delete. There are 10 users having super user preveleges. Some times back that file got deleted. How to know who has deleted that file? (6 Replies)
Discussion started by: siba.s.nayak
6 Replies

8. Shell Programming and Scripting

files of size 0 need to be deleted inside a directory

Hiiii, I have written a script which takes backup of some log files. let say the backuplocation is --- /abc/backuplocation -rw-r--r-- 1 webmut2 spgroup 0 Jan 27 02:41 ansrpt23994.log -rw-r--r-- 1 webmut2 spgroup 0 Jan 27 02:41 ansrpt3601.log -rw-r--r-- 1... (2 Replies)
Discussion started by: namishtiwari
2 Replies

9. Solaris

Deleted Lost+Found directory

If you delete your lost & found directory, how do you get it back, just do a mkdir? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

10. UNIX for Dummies Questions & Answers

Deleted /etc/passwd

Hi all, While playing with my LINUX machine i accidently deleted a file name called /etc/passwd . Even though the system is booted am unable to get the login prompt. Is there any remedy for this problem.:( (5 Replies)
Discussion started by: cyno
5 Replies
Login or Register to Ask a Question