From owner-freebsd-questions Thu Dec 30 14: 9:32 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id 14EE41535E for ; Thu, 30 Dec 1999 14:09:29 -0800 (PST) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.8.8/8.8.8) id XAA23143 for freebsd-questions@FreeBSD.ORG; Thu, 30 Dec 1999 23:09:22 +0100 (CET) (envelope-from olli) Date: Thu, 30 Dec 1999 23:09:22 +0100 (CET) From: Oliver Fromme Message-Id: <199912302209.XAA23143@dorifer.heim3.tu-clausthal.de> To: freebsd-questions@FreeBSD.ORG Subject: Re: Recovering "Deleted" File Organization: Administration TU Clausthal Reply-To: freebsd-questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: TIN [version 1.2 RZTUC(3) PL2] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Josef Karthauser wrote in list.freebsd-questions: > On Thu, Dec 30, 1999 at 09:48:41PM +0100, Oliver Fromme wrote: > > > > Having that said, recovering a reference to an existing inode > > is easy if you know the inode number. Just change to any > > directory on the filesystem which contains the inode, then > > type (at the fsdb prompt): ``ln 42 foobar'', where 42 is the > > inode number, and foobar is the name of the entry that shall be > > created in the current directory as a reference for that inode. > > then exit fsdb. That's it. > > Can you do this on a "live" filesystem? Good question. I haven't tried this myself. In any case, it should only be a last resort if you really need that file back. In theory, it should work on a live filesystem, but since fsdb is working on the raw device, it circumvents the FS driver, which might cause problems. It's probably a good idea to umount the partition and perform fsck afterwards. Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message