Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2006 05:34:14 -0500 (EST)
From:      "Jeffrey H. Johnson" <CPE1704TKS@bellsouth.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        CPE1704TKS@bellsouth.net
Subject:   ports/92148: [NEW PORT] sysutils/recoverdm: Recover files and discs with damaged sectors
Message-ID:  <20060122103414.229E839833@offworld.cqasys.com>
Resent-Message-ID: <200601221150.k0MBo302051624@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         92148
>Category:       ports
>Synopsis:       [NEW PORT] sysutils/recoverdm: Recover files and discs with damaged sectors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 22 11:50:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jeffrey H. Johnson
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD offworld.cqasys.com 6.0-STABLE FreeBSD 6.0-STABLE #21: Wed Jan 18 22:35:45 EST 2006
>Description:

Another data recovery program, very similar to dd_recover and friends.

-x-

This program will help you recover disks with bad sectors. 
You can recover files as well complete devices.

In case if finds sectors which simply cannot be recoverd, it writes an 
empty sector to the outputfile and continues. If you're recovering a CD 
or a DVD and the program cannot read the sector in "normal mode", then 
the program will try to read the sector in "RAW mode" (without error-checking 
etc.).

This toolkit also has a utility called 'mergebad': mergebad merges multiple 
images into one. This can be usefull when you have, for example, multiple CD's 
with the same data which are all damaged. In such case, you can then first use 
recoverdm to retrieve the data from the damaged CD's into image-files and then 
combine them into one image with mergebad.

WWW: http://www.vanheusden.com/recoverdm/

-x-

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- recoverdm-0.19.shar begins here ---
# 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:
#
#	recoverdm
#	recoverdm/files
#	recoverdm/files/patch-ac
#	recoverdm/files/patch-aa
#	recoverdm/files/patch-ab
#	recoverdm/Makefile
#	recoverdm/distinfo
#	recoverdm/pkg-descr
#	recoverdm/pkg-plist
#
echo c - recoverdm
mkdir -p recoverdm > /dev/null 2>&1
echo c - recoverdm/files
mkdir -p recoverdm/files > /dev/null 2>&1
echo x - recoverdm/files/patch-ac
sed 's/^X//' >recoverdm/files/patch-ac << 'END-of-recoverdm/files/patch-ac'
X*** utils.h.orig	Sun Jan 22 05:13:01 2006
X--- utils.h	Sun Jan 22 05:20:11 2006
X***************
X*** 1,5 ****
X--- 1,10 ----
X+ #define off64_t off_t
X+ #define stat64 stat
X+ #define open64 open
X+ #define lseek64 lseek
X+ 
X  void * mymalloc(size_t size, char *what);
X  void * myrealloc(void *oldp, size_t newsize, char *what);
X  off64_t get_filesize(char *filename);
X  int copy_block(int fd_in, int fd_out, off64_t block_size);
X  void myseek(int fd, off64_t offset);
END-of-recoverdm/files/patch-ac
echo x - recoverdm/files/patch-aa
sed 's/^X//' >recoverdm/files/patch-aa << 'END-of-recoverdm/files/patch-aa'
X*** Makefile.orig	Sun Jan 22 05:15:13 2006
X--- Makefile	Sun Jan 22 05:22:31 2006
X***************
X*** 1,14 ****
X  VERSION=0.19
X  
X! CFLAGS=-Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"$(VERSION)\"
X  LDFLAGS=
X  
X  OBJSr=recoverdm.o dev.o io.o utils.o error.o
X  OBJSm=mergebad.o io.o utils.o error.o
X  
X  all: recoverdm mergebad
X  
X  recoverdm: $(OBJSr)
X  	$(CC) -Wall -W $(OBJSr) $(LDFLAGS) -o recoverdm
X  	strip recoverdm
X  	echo
X--- 1,19 ----
X  VERSION=0.19
X  
X! CFLAGS+=-DVERSION=\"$(VERSION)\"
X  LDFLAGS=
X  
X  OBJSr=recoverdm.o dev.o io.o utils.o error.o
X  OBJSm=mergebad.o io.o utils.o error.o
X  
X  all: recoverdm mergebad
X+ 
X+ install:
X+ 	${INSTALL} -m 755 recoverdm ${PREFIX}/bin
X+ 	${INSTALL} -m 755 mergebad ${PREFIX}/bin
X+ 	${INSTALL} -m 644 recoverdm.1 ${PREFIX}/man/man1
X  
X  recoverdm: $(OBJSr)
X  	$(CC) -Wall -W $(OBJSr) $(LDFLAGS) -o recoverdm
X  	strip recoverdm
X  	echo
END-of-recoverdm/files/patch-aa
echo x - recoverdm/files/patch-ab
sed 's/^X//' >recoverdm/files/patch-ab << 'END-of-recoverdm/files/patch-ab'
X*** io.c.orig	Sun Jan 22 05:18:41 2006
X--- io.c	Sun Jan 22 05:18:54 2006
X***************
X*** 9,18 ****
X--- 9,19 ----
X  #include <sys/stat.h>
X  
X  #include "io.h"
X  #include "error.h"
X  #include "gen.h"
X+ #include "utils.h"
X  
X  ssize_t READ(int fd, char *whereto, size_t len)
X  {
X  	ssize_t cnt=0;
X  
END-of-recoverdm/files/patch-ab
echo x - recoverdm/Makefile
sed 's/^X//' >recoverdm/Makefile << 'END-of-recoverdm/Makefile'
X# New ports collection makefile for:    recoverdm
X# Date created:         22 January 2004
X# Whom:                 Jeffrey H. Johnson <CPE1704TKS@bellsouth.net>
X#
X# $FreeBSD: ports/sysutils/recoverdm/Makefile,v 1.00 2006/01/22 05:23:25 trn Exp $
X#
X
XPORTNAME=	recoverdm
XPORTVERSION=	0.19
XCATEGORIES=	sysutils
XMASTER_SITES=	http://www.vanheusden.com/recoverdm/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	CPE1704TKS@bellsouth.net
XCOMMENT=	Recover files and discs with damaged sectors
X
XALL_TARGET=	all
XMAN1=		recoverdm.1
X
X.include <bsd.port.mk>
END-of-recoverdm/Makefile
echo x - recoverdm/distinfo
sed 's/^X//' >recoverdm/distinfo << 'END-of-recoverdm/distinfo'
XSIZE (recoverdm-0.19.tgz) = 9806
XMD5 (recoverdm-0.19.tgz) = f24050f1ab83584a2bf07e0ef6e5fc66
XSHA256 (recoverdm-0.19.tgz) = 6158eee718d172a655f6581cbda41bc2cc8a0438ce2ad08f2892cf8d31fbd9c5
END-of-recoverdm/distinfo
echo x - recoverdm/pkg-descr
sed 's/^X//' >recoverdm/pkg-descr << 'END-of-recoverdm/pkg-descr'
XThis program will help you recover disks with bad sectors. 
XYou can recover files as well complete devices.
X
XIn case if finds sectors which simply cannot be recoverd, it writes an 
Xempty sector to the outputfile and continues. If you're recovering a CD 
Xor a DVD and the program cannot read the sector in "normal mode", then 
Xthe program will try to read the sector in "RAW mode" (without error-checking 
Xetc.).
X
XThis toolkit also has a utility called 'mergebad': mergebad merges multiple 
Ximages into one. This can be usefull when you have, for example, multiple CD's 
Xwith the same data which are all damaged. In such case, you can then first use 
Xrecoverdm to retrieve the data from the damaged CD's into image-files and then 
Xcombine them into one image with mergebad.
X
XWWW: http://www.vanheusden.com/recoverdm/
END-of-recoverdm/pkg-descr
echo x - recoverdm/pkg-plist
sed 's/^X//' >recoverdm/pkg-plist << 'END-of-recoverdm/pkg-plist'
Xbin/mergebad
Xbin/recoverdm
END-of-recoverdm/pkg-plist
exit
--- recoverdm-0.19.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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