undo rm -rf *

Bill Oliver vendor at billoblog.com
Tue Mar 26 14:49:03 UTC 2013


The last time this happened to me, I had some luck using sleuthkit:

http://www.sleuthkit.org/

As you noted, installing new things on your computer is destructive to deleted files.  It's a good idea, if you can, to make an image of your disk asap and then work on that image.  What I have done is put a live distro on a flash drive, boot from the live distro, dd the native disk to an external drive, and then run the recovery utils on the image.

billo

On Wed, 27 Mar 2013, Celik wrote:

> 
> 
> On Tue, Mar 26, 2013 at 10:37 PM, Gary Stainburn <gary.stainburn at ringways.co.uk> wrote:
>       There are a number of utilities that will attempt this for you.
>       Google "undelete ext4 linux" assuming your filesystem is ext4.
> 
> 
> Gary, thank you for the information. Installed testdisk and exundelete. In the process most likely substantially
> decreased any chance of recovering the files. Tried exundelete but couldn't get it to work. Will figure out how to use
> the programs just in case needed in the future.
> 
> Meanwhile, lost only few hours of work.
> 
> Anyhow, thanks for the support.
> 
> 
>  
>       However, as your system is used the now unallocated space is being re-used
>       reducing any your chances of success.  Even installing an uninstall utility
>       will do this, as would switching to single user or shutting down.
>
>       Even if you do nothing, the services in the background will be updating the
>       filestore,
>
>       On Tuesday 26 March 2013 11:23:29 Celik wrote:
>       > Hi,
>       >
>       > Had a logic error in my bash script and did "rm -rf *" on my current
>       > working directory. Any tips for undoing such an error?
>       >
>       > Regards,
>       > C
> 
> 
> 
> --
> Gary Stainburn
> Group I.T. Manager
> Ringways Garages
> http://www.ringways.co.uk
> --
> users mailing list
> users at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
> 
> 
> 
>


More information about the users mailing list