From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 14 11:31:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B91716A4CE; Wed, 14 Jan 2004 11:31:46 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58C2643D6A; Wed, 14 Jan 2004 11:31:34 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.3) with ESMTP id i0EJTlaT023805; Wed, 14 Jan 2004 11:29:47 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i0EJTlLV023804; Wed, 14 Jan 2004 11:29:47 -0800 Date: Wed, 14 Jan 2004 11:29:47 -0800 From: Brooks Davis To: Robert Watson Message-ID: <20040114192943.GB20013@Odin.AC.HMC.Edu> References: <16389.25821.502399.872877@canoe.dclg.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aVD9QWMuhilNxW9f" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: freebsd-hackers@freebsd.org cc: David Gilbert Subject: Re: Filesystem marker. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2004 19:31:46 -0000 --aVD9QWMuhilNxW9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 14, 2004 at 02:20:55PM -0500, Robert Watson wrote: >=20 > On Wed, 14 Jan 2004, David Gilbert wrote: >=20 > > Is there a set of bytes at some offset in a block that is common to any > > instance of a BSD ufs filesystem? I ask because recently my home > > machine erased it's fdisk block _and_ the bsdlabel with it. It > > certainly didn't have time to erase the whole disk, but I'm having > > trouble guessing where the partitions are.=20 > >=20 > > /usr/ports/sysutils/gpart will look for partitions on a disk ... but it > > only knows to look for bsd disklabels ... not bsd filesystems. Ideally, > > I'd like to make a bsd filesystem module for gpart with some pointers > > from the group.=20 >=20 > I ported the OpenBSD version of their scan_ffs to FreeBSD. However, it > only speaks UFS1: >=20 > http://www.watson.org/~robert/freebsd/scan_ffs_freebsd4/ >=20 > It might also require tweaking to even build on -CURRENT, as I haven't > lost any file systems recently enough to have needed to test. One of the > nice things about this tool is that it can generate output that can then > be fed into disklabel to write the disklabel you need back to disk. A port of scan_ffs that support UFS1 and UFS2 was committed yesterday as sysutils/scan_ffs: http://www.freshports.org/sysutils/scan_ffs -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --aVD9QWMuhilNxW9f Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFABZimXY6L6fI4GtQRAm9EAJ9zYHMlKbgZbhYnHSbUPl73qWujawCgyajH GS5xseKOJRrPMstbRZuqemg= =jWMr -----END PGP SIGNATURE----- --aVD9QWMuhilNxW9f--