Date: Wed, 14 Jan 2004 11:29:47 -0800 From: Brooks Davis <brooks@one-eyed-alien.net> To: Robert Watson <rwatson@freebsd.org> Cc: David Gilbert <dgilbert@dclg.ca> Subject: Re: Filesystem marker. Message-ID: <20040114192943.GB20013@Odin.AC.HMC.Edu> In-Reply-To: <Pine.NEB.3.96L.1040114141943.49872E-100000@fledge.watson.org> References: <16389.25821.502399.872877@canoe.dclg.ca> <Pine.NEB.3.96L.1040114141943.49872E-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040114192943.GB20013>