Date: Tue, 24 Feb 2004 23:16:51 -0500 (EST) From: Robert Watson <rwatson@freebsd.org> To: ravi pina <ravi@cow.org> Cc: freebsd-fs@freebsd.org Subject: Re: Possible corrupt disklabel and more Message-ID: <Pine.NEB.3.96L.1040224231559.61938J-100000@fledge.watson.org> In-Reply-To: <20040223204736.GB69611@happy.cow.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 23 Feb 2004, ravi pina wrote: > On Mon, Feb 23, 2004 at 10:30:44PM +0300, Maxim Konovalov said at one point in time: > > On Mon, 23 Feb 2004, 14:21-0500, Jim Rees wrote: > > > > > I've often wished I had a tool that searches a raw disk for superblocks then > > > suggests a possible disklabel. Surely someone has already written this? > > > > Sure. We have one in our src tree: src/tools/tools/find-sb. > > which version? i didn't see it in my 4.8 tree. If you're running 4.x, try: http://www.watson.org/~robert/freebsd/scan_ffs_freebsd4/ That's a port of the OpenBSD tool. There was a version adapted for UFS2 floating around somewhere also, but if you're running 4.x that's not an issue. It has a mode that spits out the disklabel -- make sure to run it on the disk slice so you get offsets relative to the slice. 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.1040224231559.61938J-100000>
