ports/108766: New port: sysutils/ffs2recov ufs2 recovery utility
Sten Spans
sten at blinkenlights.nl
Tue Feb 6 06:52:29 UTC 2007
On Sun, 4 Feb 2007, FreeBSD-gnats-submit at FreeBSD.org wrote:
>> Category: ports
>> Responsible: freebsd-ports-bugs
>> Synopsis: New port: sysutils/ffs2recov ufs2 recovery utility
>> Arrival-Date: Sun Feb 04 18:00:34 GMT 2007
Here follows an updated port which includes recent changes by
Frank Mayhar and Rong-En Fan.
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# ffs2recov
# ffs2recov/Makefile
# ffs2recov/distinfo
# ffs2recov/pkg-descr
#
echo c - ffs2recov
mkdir -p ffs2recov > /dev/null 2>&1
echo x - ffs2recov/Makefile
sed 's/^X//' >ffs2recov/Makefile << 'END-of-ffs2recov/Makefile'
X# New ports collection makefile for: ffs2recov
X# Date created: 20070204
X# Whom: sten at blinkenlights.nl
X#
X# $FreeBSD$
X#
X
XPORTNAME= ffs2recov
XPORTVERSION= 1.0
XCATEGORIES= sysutils
XMASTER_SITES= http://www.exit.com/Archives/FreeBSD/
X
XMAINTAINER= sten at blinkenlights.nl
XCOMMENT= A utility to recover UFS2 filesystems
X
XUSE_BZIP2= yes
XWRKSRC= ${WRKDIR}/${PORTNAME}
X
XMAN8= ffs2recov.8
XPLIST_FILES= sbin/ffs2recov
XWARNS=9
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/ffs2recov ${PREFIX}/sbin/.
X ${INSTALL_MAN} ${WRKSRC}/ffs2recov.8 ${MAN8PREFIX}/man/man8/.
X
X.include <bsd.port.mk>
END-of-ffs2recov/Makefile
echo x - ffs2recov/distinfo
sed 's/^X//' >ffs2recov/distinfo << 'END-of-ffs2recov/distinfo'
XSHA256 (ffs2recov-1.0.tar.bz2) = 92b442008085d5141ccf536bdfc09e3fc877a9fd90fa42c5460e2559f4cbd614
XMD5 (ffs2recov-1.0.tar.bz2) = 93f187f6a820dd3fd4b430ced1805986
XSIZE (ffs2recov-1.0.tar.bz2) = 15022
END-of-ffs2recov/distinfo
echo x - ffs2recov/pkg-descr
sed 's/^X//' >ffs2recov/pkg-descr << 'END-of-ffs2recov/pkg-descr'
XThis is the UFS2 version of ffsrecov, heavily (and I do mean _heavily_) based
Xon John-Mark Gurney's program of the same name. It does basically the same
Xthing, only it's a little more resistant to crashes caused by bad pointers,
Xoffsets and the like, and it does a little more than his did. Don't contact
Xhim for problems with this program, it's definitely _my_ fault if it breaks.
X
XThis program is not ready for prime time. It has some shortfalls, it has a
Xbunch of new options that are mostly undocumented and the manpage could
Xstand to be rewritten. One _good_ thing is that it now uses the libufs
Xlibrary and is therefore not as dependent on carrying around low-level code.
X
XOn the other hand, it worked for me. Using this tool, I was able to recover
Xalmost all of a several-hundred-gigabyte file system that had been stomped
Xby a misconfigured RAID controller. (That's why I wrote the thing in the
Xfirst place, in fact.) With the right knowledge and a lot of patience,
Xit is possible to recover most or all of a trashed file system, at least if
Xit's not _too_ trashed.
X
XI'm releasing it under the Berkeley two-clause license in the hope that
Xsomeone with more time will pick it up, polish it and make something
Xa little more useful out of it.
X
XFrank Mayhar
Xfrank at exit.com
END-of-ffs2recov/pkg-descr
exit
--
Sten Spans
"There is a crack in everything, that's how the light gets in."
Leonard Cohen - Anthem
More information about the freebsd-ports-bugs
mailing list