Date: Wed, 14 Jan 2004 11:41:43 -0500 From: Alexander Kabaev <ak03@gte.com> To: David Gilbert <dgilbert@dclg.ca> Cc: freebsd-hackers@freebsd.org Subject: Re: Filesystem marker. Message-ID: <20040114114143.0d98d930@kanpc.gte.com> In-Reply-To: <16389.25821.502399.872877@canoe.dclg.ca> References: <16389.25821.502399.872877@canoe.dclg.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Look for ffsfind.c elsewhere on Internet. I used one when I incidentally relabeled a device from under a host on our SAN array. Had to modify it slightly to recognize superblocks UFS2 on FreeBSD side, but on a bright side, it worked pretty much unchanged on Solaris box. Just in any case, I saved my copy at http://people.freebsd.org/~kan/ffsfind.c On Wed, 14 Jan 2004 10:48:45 -0500 David Gilbert <dgilbert@dclg.ca> 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. > > Dave. > > -- > ===================================================================== > =======|David Gilbert, Independent Contractor. | Two things can > only be ||Mail: dave@daveg.ca | equal if > and only if they ||http://daveg.ca | > are precisely opposite. > |=========================================================GLO======== > ========_______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" -- Alexander Kabaev
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040114114143.0d98d930>