Date: Wed, 14 Jan 2004 14:20:55 -0500 (EST) From: Robert Watson <rwatson@freebsd.org> To: David Gilbert <dgilbert@dclg.ca> Cc: freebsd-hackers@freebsd.org Subject: Re: Filesystem marker. Message-ID: <Pine.NEB.3.96L.1040114141943.49872E-100000@fledge.watson.org> In-Reply-To: <16389.25821.502399.872877@canoe.dclg.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 14 Jan 2004, David Gilbert wrote: > 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. > > /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. I ported the OpenBSD version of their scan_ffs to FreeBSD. However, it only speaks UFS1: http://www.watson.org/~robert/freebsd/scan_ffs_freebsd4/ 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. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1040114141943.49872E-100000>