From owner-freebsd-fs Fri Feb 21 13:38:21 2003 Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F3AC37B406; Fri, 21 Feb 2003 13:38:20 -0800 (PST) Received: from smtp1.server.rpi.edu (smtp1.server.rpi.edu [128.113.2.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F7C043FDF; Fri, 21 Feb 2003 13:38:19 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp1.server.rpi.edu (8.12.7/8.12.7) with ESMTP id h1LLcI3q019166; Fri, 21 Feb 2003 16:38:18 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200302192220.12731.mranner@inode.at> References: <200302192220.12731.mranner@inode.at> Date: Fri, 21 Feb 2003 16:38:17 -0500 To: Michael Ranner , freebsd-fs@FreeBSD.ORG From: Garance A Drosihn Subject: Re: scan_ffs for UFS2 Cc: freebsd-hackers@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-RPI-Spam-Score: -0.5 () IN_REP_TO,REFERENCES,SIGNATURE_SHORT_DENSE,SPAM_PHRASE_03_05 X-Scanned-By: MIMEDefang 2.28 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At 10:20 PM +0100 2/19/03, Michael Ranner wrote: >Hello! > >I am trying to learn scan_ffs (original from OpenBSD, ported to >FreeBSD by Robert Watson) about UFS2 on 5-CURRENT, but it will >not find the Superblock and I dont understand exactly both for >loops, especially that 512 byte increment. > >Scan_ffs is a system tool from OpenBSD to recover erased disklabels >from your hard drive. > >Thanks for your input. For what it's worth, we (FreeBSD) have a simple SuperBlock recovery program in /usr/src/tools/tools/find-sb. I picked up some updates from Dave Cross for that, and have a few more of my own. I just have to sit down and get them all together into a single version. I don't know how find-sb compares to the program you're talking about, but they sound kind of similar. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message