Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2003 09:42:52 -0500
From:      Hiten Pandya <hiten@unixdaemons.com>
To:        Michael Ranner <mranner@inode.at>
Cc:        freebsd-hackers@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG, Garance A Drosihn <drosih@rpi.edu>
Subject:   Re: scan_ffs for UFS2
Message-ID:  <20030224144252.GC74746@unixdaemons.com>
In-Reply-To: <200302231540.20166.mranner@inode.at>
References:  <200302192220.12731.mranner@inode.at> <p05200f13ba7c4be9b16a@[128.113.24.47]> <200302231540.20166.mranner@inode.at>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Ranner (Sun, Feb 23, 2003 at 03:40:20PM +0100) wrote:
> Am Freitag, 21. Februar 2003 22:38 schrieben Sie:
> > At 10:20 PM +0100 2/19/03, Michael Ranner wrote:
> >
> > For what it's worth, we (FreeBSD) have a simple SuperBlock recovery
> > program in /usr/src/tools/tools/find-sb.  I picked up some updates
> > from Dave Cross for that, and have a few more of my own.  I just
> > have to sit down and get them all together into a single version.
> > I don't know how find-sb compares to the program you're talking
> > about, but they sound kind of similar.
> 
> Scan_ffs can print the lost disklabel for use with disklabel(8).
> Find-sb, that version from cvs, seems only to print info about
> the superblocks of each file system and you have to rebuild the
> lost disklabel for your self. I was on the search for a simple
> tool for everybody, and found scan_ffs several months ago
> in the OpenBSD distribution (so it seems find-sb was like
> reinventing the wheel) and Robert Watson suggested in a posting
> december last year to adopt scan_ffs for UFS2. IMHO we should
> reuse a already written program with existing man pages, so
> we have the same sounding tools for the same tasks.
> 
> I don't know what find-sb could do with your patches applied.
> If it's superior to scan_ffs, we can forget scan_ffs.

FWIW, I did make scan_ffs work with UFS2 at one point in time, but I
lost my stuff in a disk crash.  It's a pretty good utility with good
documentation.  The only thing you need to worry about in the scan_ffs
code is the opendisk() routine, or something like that, but it shouldn't
be hard.

-- 
Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org)
http://www.unixdaemons.com/~hiten/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030224144252.GC74746>