From owner-freebsd-questions@FreeBSD.ORG Thu Jul 8 07:12:31 2010 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 6EE55106566C for ; Thu, 8 Jul 2010 07:12:31 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 5125B8FC18 for ; Thu, 8 Jul 2010 07:12:31 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id o687CUX4037590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 8 Jul 2010 00:12:30 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id o687CUi1037589; Thu, 8 Jul 2010 00:12:30 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA27706; Thu, 8 Jul 10 00:10:59 PDT Date: Thu, 08 Jul 2010 00:06:46 -0700 From: perryh@pluto.rain.com To: swell.k@gmail.com, eingorn777@gmail.com Message-Id: <4c357906.aGmjWURYjiG+sY/w%perryh@pluto.rain.com> References: <86fwzv3xkp.fsf@gmail.com> In-Reply-To: <86fwzv3xkp.fsf@gmail.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: debugfs&FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jul 2010 07:12:31 -0000 Anonymous wrote: > Dmitry Lunts writes: > > > Hello,All! > > There is debugfs program dealing with ext2/ext3/ext4 filesystems. > > Is there some tool in FreeBSD with functionality analogous to debugfs > > which can operate on UFS2? > > Not sure but fsdb(8) may help. Before the development of fsck, its job was split between two utilities -- icheck and dcheck -- which in addition to their principal use for fixing corrupted filesystems also provided the ability to do exactly this sort of thing. I have no idea how much the filesystem data structures may have changed since, but if you can track down their sources and get them to compile they might still be useful.