You are not logged in.
Pages: 1
Hi guys, I made horrible mistake few days ago. I mistakenly wrote rm -R * ~/moje/ instead of rm -R ~/moje/* ( probably because I was working with grep few minutes before and automatically used that syntax). I lost nearly 3/4 of all my files and everything in my /home/ . When I found out what happend I quickly turned off computer to prevent system from writing to sectors with deleted files. Do you know about some kind of rescue utlity/distro which can undelete files from ext4 filesystem ? Thank you in advance for your responses.
Last edited by bakMan (2010-03-11 13:52:29)
Offline
Which filesystem?
rm is a deadly command, your files are gone I believe.
EDIT: Ah you edited after I posted, hmm I don't know an utility for ext4
Last edited by sHyLoCk (2010-02-14 12:18:25)
Offline
aghhr .. why am I always using terminal for everything ? .. jeez .. perhaps I'll start using GUI for such tasks from now on ...
Offline
You didn't Google? There's a sf project called extundelete that claims to be the only undelete option for ext4 - I found it in 3 seconds.
OT advice - by only asking here, you're drastically limiting the number of answers you might get. This is an emergency after all - use every resource you can find.
Offline
yup .. I found it .. but I didn't know if that utility is actually working and using it won't break my files for eternity. I wanted to find someone who had similar experience and made it out.
Offline
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
... and of course you will be taking regular backups from now on.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
I have a hard disk with warranty, being repaired (because of sata port contact). It has a chance, that I'll get it back formatted by Win-dumbs, as it only had a second partition as ext3 (no first, it was merged to the second before)
If they format that hard drive/create new partition table, may extundelete work, or extundelete only works on existing ext* partitions?
Offline
Interesting read at: http://extundelete.sourceforge.net/
It talks about other options for recovery too...
Offline
I've had very good luck with Photorec (within testdisk I believe)
http://www.cgsecurity.org/wiki/PhotoRec
http://aur.archlinux.org/packages.php?ID=8377
It doesn't merely recover photos but almost everything. The downside however is that it takes a lot of time to go through and find what you want. You might ask it to recover everything it can and to write it to a separate harddrive or flash drive. Then you want to sort that. Make sure NOT to write the recovered files to the same disk as where you are trying to find the files. That will obviously overwrite your old data and you will lose more files.
Offline
+1 for testdisk/photorec.
I'm the type to fling myself headlong through the magical wardrobe, and then incinerate the ornate mahogany portal behind me with a Molotov cocktail.
Offline
Than you for all your replies. Extundelete is just perfect. It saved nearly all my files
Offline
Glad you got it fixed. Please mark your thread as solved.
In the future, you might want to do something like:
alias rm='mv --target-directory ~/.Trash'
enjoy.
Offline
Pages: 1