From owner-freebsd-current@FreeBSD.ORG Tue Apr 20 06:04:30 2004 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 8BC7016A55A for ; Tue, 20 Apr 2004 06:04:30 -0700 (PDT) Received: from mail.delit.net (delit.net [194.67.27.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13B3943D1F for ; Tue, 20 Apr 2004 06:04:30 -0700 (PDT) (envelope-from smir@delit.net) Received: by mail.delit.net (Postfix, from userid 426) id AFB0A34FDC; Tue, 20 Apr 2004 17:04:28 +0400 (MSD) Received: from delit.net (ppp0-27.pppoe.mtu-net.ru [81.195.0.27]) by mail.delit.net (Postfix) with ESMTP id 5EB1B34FBF for ; Tue, 20 Apr 2004 17:04:28 +0400 (MSD) Message-ID: <40851FDB.1020908@delit.net> Date: Tue, 20 Apr 2004 17:04:27 +0400 From: Andrey Smirnov User-Agent: Mozilla Thunderbird 0.5 (X11/20040324) X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: current@freebsd.org References: <4084F85B.5070909@delit.net> <20040420102632.GA36668@e-Gitt.NET> <20040420121423.GA1154@frontfree.net> <20040420125025.GA30066@energistic.com> In-Reply-To: <20040420125025.GA30066@energistic.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: A way to recover deleted files (just contents) from USF2 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: Tue, 20 Apr 2004 13:04:30 -0000 Steve Ames wrote: > That's kinda silly. Unless files are backed up at every edit then most of > us only have periodic filesystem backups. Lets say I just download a 150M > file and then accidentally delete it. Rather than wasting time and bandwidth > downloading again it'd be simpler to just 'unrm' it. Odds are that diskspace > and even inode haven't been recycled yet. > > Mind you such an option takes some of the breathtaking fun of working > without a net away from your shell session but hey... sometimes you > actually do need the airbag. > > We all know we need backups. We've all had that one time when we goofed > and didn't have the backup. This guy was just wondering if there was a > tool available (for ufs2) that would save him some time. A lesson in > good backup practices might be useful for next time but doesn't really > help him now. > > (BTW: I have no good answer for recovering the file :) I've done some resarch now, just to make sure: after last reference to inode is lost, i.e. file is deleted, almost all information in that inode about the file is lost? (size, blocks, etc.)? I've got it from source code & some testing, but it would be great if there was a way to recover that info... Thanks, Andrey.