Re: Restore deleted files

2009-01-09 Thread Michael Copeland



Polytropon wrote:

Hi,

I'd like to ask a two-stage question:

1. Is it possible to recover files that have been deleted?

2. Which tools or procedures are suggested for recovery?

While sorting out some files and transfering them to another
hard disk, I accidentally deleted too much: the directory with
my videos taken by a digital camera. They were located in a
directory within a subtree, and I deleted the whole subtree
without first copying these files.

I used the Midnight Commander to do this. As I read from its
source code, it seems to use the unlink() call to delete the
subtree recursively. Pressing PF8 can really ruin your day...

Just after I noticed what I had done I unmounted the file system,
powered off the machine and put the disk on the shelf (it's still
there), no further write accesses.

I would be glad if someone could enlighten me if there is any
chance to get the files back, even with the loss of the file
names (doesn't matter), and which tools seem to serve best in
this difficult task.

And if it's impossible, please tell me. I can newfs the disk
then and free it, along with my mind.




PS.
I'm posting this question to -fs, too. Answers from this list
please keep me in CC because I'm not subscribed to -fs. Thank you!
  
See if this can help you, it recognizes and recovers files based on 
headers, data structures, etc. not names.

http://foremost.sourceforge.net/
this along with a couple of the other tools people have mentioned should 
get you back to where you need to be.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restore deleted files

2009-01-09 Thread Rockingham500
1. Yes, you can recover your deleted files.

2. The best file recovery program is File Restore Professional. It
will also recover files that have lost their file header details and
hence have no file names. Most other products can't do this. You can
also preview your deleted files before you make your purchase. There
is also a testimonial on the companies web site about Microsoft
employees in Germany using it. Further information, trial downloads,
etc., are available here: www.pcrecovery.com

On Jan 8, 11:28 pm, Polytropon free...@edvax.de wrote:
 Hi,

 I'd like to ask a two-stage question:

 1. Is it possible to recover files that have been deleted?

 2. Which tools or procedures are suggested for recovery?

 While sorting out some files and transfering them to another
 hard disk, I accidentally deleted too much: the directory with
 my videos taken by a digital camera. They were located in a
 directory within a subtree, and I deleted the whole subtree
 without first copying these files.

 I used the Midnight Commander to do this. As I read from its
 source code, it seems to use the unlink() call to delete the
 subtree recursively. Pressing PF8 can really ruin your day...

 Just after I noticed what I had done I unmounted the file system,
 powered off the machine and put the disk on the shelf (it's still
 there), no further write accesses.

 I would be glad if someone could enlighten me if there is any
 chance to get the files back, even with the loss of the file
 names (doesn't matter), and which tools seem to serve best in
 this difficult task.

 And if it's impossible, please tell me. I can newfs the disk
 then and free it, along with my mind.

 PS.
 I'm posting this question to -fs, too. Answers from this list
 please keep me in CC because I'm not subscribed to -fs. Thank you!

 --
 PolytroponFrom Magdeburg, Germany

 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 freebsd-questi...@freebsd.org mailing 
 listhttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Restore deleted files

2009-01-08 Thread Polytropon
Hi,

I'd like to ask a two-stage question:

1. Is it possible to recover files that have been deleted?

2. Which tools or procedures are suggested for recovery?

While sorting out some files and transfering them to another
hard disk, I accidentally deleted too much: the directory with
my videos taken by a digital camera. They were located in a
directory within a subtree, and I deleted the whole subtree
without first copying these files.

I used the Midnight Commander to do this. As I read from its
source code, it seems to use the unlink() call to delete the
subtree recursively. Pressing PF8 can really ruin your day...

Just after I noticed what I had done I unmounted the file system,
powered off the machine and put the disk on the shelf (it's still
there), no further write accesses.

I would be glad if someone could enlighten me if there is any
chance to get the files back, even with the loss of the file
names (doesn't matter), and which tools seem to serve best in
this difficult task.

And if it's impossible, please tell me. I can newfs the disk
then and free it, along with my mind.




PS.
I'm posting this question to -fs, too. Answers from this list
please keep me in CC because I'm not subscribed to -fs. Thank you!

-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restore deleted files

2009-01-08 Thread Julian Elischer

Polytropon wrote:

Hi,

I'd like to ask a two-stage question:

1. Is it possible to recover files that have been deleted?

2. Which tools or procedures are suggested for recovery?

While sorting out some files and transfering them to another
hard disk, I accidentally deleted too much: the directory with
my videos taken by a digital camera. They were located in a
directory within a subtree, and I deleted the whole subtree
without first copying these files.

I used the Midnight Commander to do this. As I read from its
source code, it seems to use the unlink() call to delete the
subtree recursively. Pressing PF8 can really ruin your day...

Just after I noticed what I had done I unmounted the file system,
powered off the machine and put the disk on the shelf (it's still
there), no further write accesses.


unmounting could have made things worse :-/

it then actually cleaned up and wrote the changes
the best would have been to ahve hit CTLALTESC and dropped into 
the debugger

and then unplugged the drive..

still you MIGHT be lucky if the files are contiguous on disk (which 
images are likely to be.


I don't know hte tools bu there are some...
they are usually more useful for recovering from crashes etc.
the trouble with accidental deletes is that they often leave no
information as to what went where.

hopefully someone else can give you more info as to tools.




I would be glad if someone could enlighten me if there is any
chance to get the files back, even with the loss of the file
names (doesn't matter), and which tools seem to serve best in
this difficult task.

And if it's impossible, please tell me. I can newfs the disk
then and free it, along with my mind.




PS.
I'm posting this question to -fs, too. Answers from this list
please keep me in CC because I'm not subscribed to -fs. Thank you!



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restore deleted files

2009-01-08 Thread Chuck Swiger

On Jan 8, 2009, at 3:28 PM, Polytropon wrote:

I'd like to ask a two-stage question:

1. Is it possible to recover files that have been deleted?

2. Which tools or procedures are suggested for recovery?


The preferred method is to recover files from backup.  If you don't  
take backups, you've decided that you don't really care about the  
data.  This being said, you might take a look at something like:



% cat /usr/ports/sysutils/sleuthkit/pkg-descr
The Sleuth Kit (previously known as TASK) is a collection of UNIX- 
based
command line file system and media management forensic analysis  
tools.  The
file system tools allow you to examine file systems of a suspect  
computer in

a non-intrusive fashion.

The media management tools allow you to examine the layout of disks  
and
other media.  The Sleuth Kit supports DOS partitions, BSD partitions  
(disk
labels), Mac partitions, Sun slices (Volume Table of Contents), and  
GPT
disks.  With these tools, you can identify where partitions are  
located and
extract them so that they can be analyzed with file system analysis  
tools.


WWW: http://www.sleuthkit.org/sleuthkit/


This can be used to attempt to undelete files from a UFS  
filesystem


Regards,
--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restore deleted files

2009-01-08 Thread Roland Smith
On Fri, Jan 09, 2009 at 12:28:46AM +0100, Polytropon wrote:
 Hi,
 
 I'd like to ask a two-stage question:
 
 1. Is it possible to recover files that have been deleted?

Sure. You just restore them from backups. (Sorry, couldn't resist. :-)

If you don't have backups it might be possible, if the data has not been
overwritten.

 2. Which tools or procedures are suggested for recovery?

Try sysutils/sleuthkit [http://www.sleuthkit.org/].

snip
 Just after I noticed what I had done I unmounted the file system,
 powered off the machine and put the disk on the shelf (it's still
 there), no further write accesses.

You did the right thing here. Your information is probably still
there. It should probably be possible to restore the files, but it could
take a lot of effort. Use dd to make an image of the harddisk, and work on that.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpUJIfyGIdR1.pgp
Description: PGP signature