From owner-freebsd-current@FreeBSD.ORG Tue Apr 25 20:19:18 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34D1D16A414 for ; Tue, 25 Apr 2006 20:19:18 +0000 (UTC) (envelope-from jhs@flat.berklix.net) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF5C543D64 for ; Tue, 25 Apr 2006 20:19:10 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (p549A77F1.dip.t-dialin.net [84.154.119.241]) (authenticated bits=128) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id k3PKJ6sm078833 for ; Tue, 25 Apr 2006 22:19:07 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id k3PKJ5cG068573 for ; Tue, 25 Apr 2006 22:19:05 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (localhost.jhs.private [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id k3PKKG2O057214 for ; Tue, 25 Apr 2006 22:20:16 +0200 (CEST) (envelope-from jhs@fire.jhs.private) Message-Id: <200604252020.k3PKKG2O057214@fire.jhs.private> To: current@freebsd.org In-Reply-To: Message from Ulrich Spoerlein of "Tue, 25 Apr 2006 14:14:22 +0200." <20060425121421.GB1105@roadrunner.q.local> Date: Tue, 25 Apr 2006 22:20:16 +0200 From: "Julian H. Stacey" Cc: Subject: Re: Improvements to src/tools/tools/recoverdisk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2006 20:19:18 -0000 Ulrich Spoerlein wrote: > Dear Poul-Henning, current@, > > I made two, what I call, improvements to recoverdisk. It only tries to > read in multiples of 512 bytes OR the sectorsize. This sucks for CD/DVD > with 2352 bytes sectorsize. My patch takes the native sectorsize into > account, when dimensioning BIG and MEDIUMSIZE. > > Second feature is the saving and loading of the worklist. Again, not > very helpful for reading hard disks, but very useful for CDs. This way, > you can first try a scratched CD in drive A, then drive B and drive C. > You don't have to start all over again, but instead can profit from the > different error recovery mechanisms. > > Previously, I did this with dd(1) and paper and pencil. Not funny. > > Please try the attached patch, thanks! FYI I have a C program from 1987 to rescue data off floppies, down to literally the last bit. Compiles on DOS & BSD, runs properly only on DOS, as DOS returns the buffer even on CRC error. Unix doesn't. http://berklix.com/~jhs/src/bsd/jhs/bin/public/valid/ A recovery tool I wrote for a BSD4.2 with flakey tape drive: http://berklix.com/~jhs/src/bsd/jhs/bin/public/slice/ To test media &/or drivers there's http://berklix.com/~jhs/src/bsd/jhs/bin/public/testblock/ -- Julian Stacey. Consultant Unix Net & Sys. Eng., Munich. http://berklix.com Mail in Ascii, HTML=spam. Ihr Rauch = mein allergischer Kopfschmerz.