fedora-users March 2013 archive
Main Archive Page > Month Archives  > fedora-users archives
fedora-users: Re: undo rm -rf *

Re: undo rm -rf *

From: Celik <celik.n.00_at_nospam>
Date: Tue Mar 26 2013 - 16:26:04 GMT
To: Community support for Fedora users <users@lists.fedoraproject.org>

On Wed, Mar 27, 2013 at 1:49 AM, Bill Oliver <vendor@billoblog.com> wrote:

>
> 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
>
>
Bill, re-did the work. Because it was fresh in my mind, it didn't take as
long.

The tasks you have mentioned (i.e. making an image of disk and dd) are new
to me. I'll try to follow the steps with some dummy files on my laptop. The
laptop is for testing new programs if anything goes wrong won't cause much
heart-ache.

Please excuse me if this going to be a silly question, so can we use dd for
making backups of our files/computer? or can we make an image of our disk
solely for a backup purpose?

>
> On Wed, 27 Mar 2013, Celik wrote:
>
>
>>
>> On Tue, Mar 26, 2013 at 10:37 PM, Gary Stainburn <
>> gary.stainburn@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@lists.fedoraproject.org
>> To unsubscribe or change subscription options:
>> https://admin.fedoraproject.**org/mailman/listinfo/users<https://admin.fedoraproject.org/mailman/listinfo/users>
>> Guidelines: http://fedoraproject.org/wiki/**Mailing_list_guidelines<http://fedoraproject.org/wiki/Mailing_list_guidelines>
>> Have a question? Ask away: http://ask.fedoraproject.org
>>
>>
>>
>>
> --
> users mailing list
> users@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
>
>

-- users mailing list users@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