I accidentally erased everything using rm -r , thinking that i would only erase the contents of the directory that i was in. now everything is gone!! is there any way i can restore in linux? help!!
I accidentally erased everything using rm -r , thinking that i would only erase the contents of the directory that i was in. now everything is gone!! is there any way i can restore in linux? help!!
O_o
The question has nothing to do with "Linux Programming".
The question is just a technical question and should be moved.
As for the question, we would need to know the exact command and distribution.
However, you are probably out of luck.
In the future, you should consider using `mv' until you are intimately familiar with `rm'.
Soma
“Salem Was Wrong!” -- Pedant Necromancer
“Four isn't random!” -- Gibbering Mouther
https://en.wikipedia.org/wiki/List_o...overy_software
You need to STOP using the machine with the lost files ASAP. The more you use it, the more will be lost permanently.
Start with the link and find some suitable s/w you can burn to a live CD / USB, then boot the machine from that media.
Also have to hand another USB drive to copy any data it finds off the "dead" disk. You don't want to write to it at all until you've exhausted all the recovery options available to you.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
"Data recovery" can range from a variety of topics. For this situation you want to "undelete" or "unerase" is normally what its called. One tool claiming ability to do this for ext3/4 filesystems (usually the default filesystem) -
extundelete: An ext3 and ext4 file undeletion utility
As mentioned you should boot from a live CD to make the recovery attempt and not the system itself. Reason is, every write action you take on the affected filesystem could potentially overwrite your deleted files.
Hi, I was able to browse this thread and I find it very useful in the future if ever I encountered such problems about accidentally delete my files . Thanks for sharing your suggestions and recommendations for restoring files or data recovery as well