Re: how to undelete?

Previous thread: Re: question regarding multipath routing by Stuart Henderson on Monday, July 7, 2008 - 3:43 am. (1 message)

Next thread: comixwall pf will not work by Rainel Roflo on Monday, July 7, 2008 - 12:22 am. (3 messages)
From: macintoshzoom
Date: Monday, July 7, 2008 - 4:48 am

I deleted a directory from an OpenBSD slice from my 2nd HD, and I need
to recover a single file.

I tried : http://myutil.com/2008/1/15/undelete-unrm-for-openbsd-4-2-with-dls
but  failed :

# dls /dev/wd1x > /xxx/xx/undelete.bin
Sector offset supplied is larger than disk image (maximum: 0)

Help & thanks.

From: Marco Peereboom
Date: Monday, July 7, 2008 - 5:29 am

You use a backup.

UNIX != Windows != OSX


From: Die Gestalt
Date: Monday, July 7, 2008 - 5:51 am

Just open your disk in a hex editor and look for your data, it should be here.

From: macintoshzoom
Date: Monday, July 7, 2008 - 12:30 pm

Which hex editor do you advise?
Should I have to umount the partition before?
the partition is 40 GB size on a secondary disk, OpenBSD old slice,
should I need at least such space (/tmp ?) to open it on the hex editor
from my OpenBSD 4.3?

Thanks!


From: Leonardo Rodrigues
Date: Wednesday, July 9, 2008 - 11:40 pm

If I'm not mistaken, openbsd zeroes the data when you delete a file.
I remember trying to recover a file and then receiving a 0Kb file =)

If you still want to try, you could try using the sleuth kit
(available in ports) to recover something.

From: Henning Brauer
Date: Thursday, July 10, 2008 - 4:14 am

no, that would be pointless.

-- 
Henning Brauer, hb@bsws.de, henning@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam

From: David Vasek
Date: Thursday, July 10, 2008 - 5:03 am

For the archives: unless it is specifically requested as
rm -P

Regards,
David

From: Gordon Grieder
Date: Thursday, July 10, 2008 - 7:23 am

For some unknown reason this prompted me to look at the rm manpage for the
hell of it (yeah, bored and tired at the moment). There's an odd comment in
the STANDARDS section which says

    "The interactive mode used to be a dsw command, a carryover from the an-
    cient past with an amusing etymology."

That piqued my interest further (yeah, still bored and still tired at the
moment) so I googled away and found this tidbit about the mysterious dsw
command: http://dvlabs.tippingpoint.com/blog/2008/03/18/a-bit-of-history

 Gord

From: Die Gestalt
Date: Saturday, July 19, 2008 - 2:23 am

There is a very nice hex editor specialized in forensics called
WinHex, but it runs on Windows. I don't know if there is an equivalent
tool in the *nix world.

From: Nick Guenther
Date: Saturday, July 19, 2008 - 7:18 am

hexdump -C?

From: Sviatoslav Chagaev
Date: Saturday, July 19, 2008 - 7:00 am

On Sat, 19 Jul 2008 10:18:19 -0400

bvi ( http://bvi.sourceforge.net/ )

From: dermiste
Date: Saturday, July 19, 2008 - 11:25 am

You might want to try Photorec :
http://www.cgsecurity.org/wiki/PhotoRec

good luck


Previous thread: Re: question regarding multipath routing by Stuart Henderson on Monday, July 7, 2008 - 3:43 am. (1 message)

Next thread: comixwall pf will not work by Rainel Roflo on Monday, July 7, 2008 - 12:22 am. (3 messages)