From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 5 16:28:24 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A1EA016A415 for ; Mon, 5 Feb 2007 16:28:24 +0000 (UTC) (envelope-from frank@exit.com) Received: from tinker.exit.com (tinker.exit.com [206.223.0.1]) by mx1.freebsd.org (Postfix) with ESMTP id 150F213C48D for ; Mon, 5 Feb 2007 16:28:23 +0000 (UTC) (envelope-from frank@exit.com) Received: from jill.exit.com (jill.exit.com [206.223.0.4]) by tinker.exit.com (8.13.8/8.13.8) with ESMTP id l15Ft0qr050134; Mon, 5 Feb 2007 07:55:00 -0800 (PST) (envelope-from frank@exit.com) Received: from jill.exit.com (localhost [127.0.0.1]) by jill.exit.com (8.13.8/8.13.8) with ESMTP id l15Fsx1O063630; Mon, 5 Feb 2007 07:55:00 -0800 (PST) (envelope-from frank@exit.com) Received: (from frank@localhost) by jill.exit.com (8.13.8/8.13.8/Submit) id l15FsxYG063629; Mon, 5 Feb 2007 07:54:59 -0800 (PST) (envelope-from frank@exit.com) X-Authentication-Warning: jill.exit.com: frank set sender to frank@exit.com using -f From: Frank Mayhar To: Ivan Voras In-Reply-To: References: <1170530417.20968.14.camel@jill.exit.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Exit Consulting Date: Mon, 05 Feb 2007 07:54:58 -0800 Message-Id: <1170690898.62703.5.camel@jill.exit.com> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 FreeBSD GNOME Team Port X-Virus-Scanned: ClamAV 0.88.6/2524/Mon Feb 5 04:48:22 2007 on tinker.exit.com X-Virus-Status: Clean Cc: freebsd-hackers@FreeBSD.org Subject: Re: UFS2 version of ffsrecov. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: frank@exit.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Feb 2007 16:28:24 -0000 On Mon, 2007-02-05 at 12:27 +0100, Ivan Voras wrote: > Frank Mayhar wrote: > > No, I'm not looking for one, I'm releasing one. This is a heavily > > modified version of John-Mark Gurney's ffsrecov, adapted to use libufs > > and to work (only) with UFS2 file systems. I call it ffs2recov and it > > is available at > > http://www.exit.com/Archives/FreeBSD/ffs2recov.tar.bz2 > Can it undelete files on a working file system? Heh, I figured someone would ask that question. The answer is, for the most part, no, it can't. When you delete a file the directory entry is freed; ffs2recov doesn't know how to recover it and in fact it may not _be_ recoverable. If it is at all, fsdb might be your best bet. On the other hand, you might also shoot your own foot off. :-) -- Frank Mayhar frank@exit.com http://www.exit.com/ Exit Consulting http://www.gpsclock.com/ http://www.exit.com/blog/frank/