From owner-freebsd-current@FreeBSD.ORG Wed Nov 12 17:26:53 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 742D716A4CE for ; Wed, 12 Nov 2003 17:26:53 -0800 (PST) Received: from pit.databus.com (p70-227.acedsl.com [66.114.70.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7565143F93 for ; Wed, 12 Nov 2003 17:26:52 -0800 (PST) (envelope-from barney@pit.databus.com) Received: from pit.databus.com (localhost [127.0.0.1]) by pit.databus.com (8.12.9p2/8.12.9) with ESMTP id hAD1Qmp4046408; Wed, 12 Nov 2003 20:26:48 -0500 (EST) (envelope-from barney@pit.databus.com) Received: (from barney@localhost) by pit.databus.com (8.12.9p2/8.12.9/Submit) id hAD1QmkY046407; Wed, 12 Nov 2003 20:26:48 -0500 (EST) (envelope-from barney) Date: Wed, 12 Nov 2003 20:26:48 -0500 From: Barney Wolff To: "Thyer, Matthew" Message-ID: <20031113012648.GA46137@pit.databus.com> References: <5F13229E7BA2D611BD0300306E010DB08C9790@ednex503.dsto.defence.gov.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5F13229E7BA2D611BD0300306E010DB08C9790@ednex503.dsto.defence.gov.au> User-Agent: Mutt/1.4.1i X-Scanned-By: MIMEDefang 2.37 cc: "'current@freebsd.org'" Subject: Re: undelete for FreeBSD current? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2003 01:26:53 -0000 On Thu, Nov 13, 2003 at 11:30:51AM +1030, Thyer, Matthew wrote: > I've done a bad thing and need to recover a single file in /usr/local/etc/rc.d/ after a rm -rf of /usr/local > > I've kept the file system relatively quiet since then. TCT may help. http://www.porcupine.org/forensics/tct.html but I don't think it's been tested with current/ufs2. Also, don't expect to build it on the system and then find a deleted file. But if you have a clue of what you're looking for, just grepping /dev/da or /dev/ad might work. (grep -a -A100 -B100) -- Barney Wolff http://www.databus.com/bwresume.pdf I'm available by contract or FT, in the NYC metro area or via the 'Net.