From owner-freebsd-questions@FreeBSD.ORG Thu Jan 8 23:28:54 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 E5DB610656BF for ; Thu, 8 Jan 2009 23:28:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id A82B88FC24 for ; Thu, 8 Jan 2009 23:28:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-14-53.dynamic.qsc.de [92.196.14.53]) by mx02.qsc.de (Postfix) with ESMTP id 3E97616C009D; Fri, 9 Jan 2009 00:28:53 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n08NSlLu003847; Fri, 9 Jan 2009 00:28:47 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 9 Jan 2009 00:28:46 +0100 From: Polytropon To: FreeBSD Questions , FreeBSD FS Message-Id: <20090109002846.c67d962f.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Restore deleted files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2009 23:28:55 -0000 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, ...