From owner-freebsd-questions@FreeBSD.ORG Fri Jan 9 13:53:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E1AF1065672 for ; Fri, 9 Jan 2009 13:53:37 +0000 (UTC) (envelope-from michael.copeland@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id 1AA0A8FC1A for ; Fri, 9 Jan 2009 13:53:36 +0000 (UTC) (envelope-from michael.copeland@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so5518942qwb.7 for ; Fri, 09 Jan 2009 05:53:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=7eruovCn7Q6RDgNzJIgm23Bh919fbym5UZcQVwQ2yq0=; b=eZjyCMRlNTUyFREES2m70Q6tuPBPtu0qvlRZGrh0B/dQ5lHp0f3B+zM/UDNot1YUJl hHL+Tn/vPuRTc0XupdKR/aAFThSXJDpL+UKDTso7k+MJe/uDodGpMoUOKaYUVWdL6jpN 2BvstaINmI2F+0W3tUTasR1dGMVW4TPNflPnk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=NBwYxafpu6YMgpYSYXrVoeS2vhhTFBMYaHgFSd15V5nfsYCkJOH9zUp205tWCagvHN 7CxDIUnT4+/4FT3iIIjSvqRnXySmWJg1F6faY2xBK2gxbJqhBcPAOfxzOTY6dswrKhgE Xie1ZrD+9PbHFAPUkGqJQw8NrPVaou6DndP2I= Received: by 10.214.244.16 with SMTP id r16mr22704498qah.68.1231509216453; Fri, 09 Jan 2009 05:53:36 -0800 (PST) Received: from ?192.168.1.104? (adsl-074-245-053-043.sip.jax.bellsouth.net [74.245.53.43]) by mx.google.com with ESMTPS id 6sm5715106ywp.48.2009.01.09.05.53.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Jan 2009 05:53:35 -0800 (PST) Message-ID: <496756E3.5040002@gmail.com> Date: Fri, 09 Jan 2009 08:53:39 -0500 From: Michael Copeland User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Polytropon References: <20090109002846.c67d962f.freebsd@edvax.de> In-Reply-To: <20090109002846.c67d962f.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Restore deleted files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2009 13:53:38 -0000 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.