From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 27 20:22:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58D1E16A4CE for ; Mon, 27 Sep 2004 20:22:35 +0000 (GMT) Received: from mxb.saturn-tech.com (mxb.saturn-tech.com [207.229.19.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B2F543D39 for ; Mon, 27 Sep 2004 20:22:35 +0000 (GMT) (envelope-from drussell@saturn-tech.com) Received: from mxb.saturn-tech.com (localhost [127.0.0.1]) by mxb.saturn-tech.com (8.12.3/8.12.3) with ESMTP id i8RKP9Kt049967; Mon, 27 Sep 2004 14:25:09 -0600 (MDT) (envelope-from drussell@saturn-tech.com) Received: from localhost (drussell@localhost)i8RKP9RZ049964; Mon, 27 Sep 2004 14:25:09 -0600 (MDT) (envelope-from drussell@saturn-tech.com) X-Authentication-Warning: mxb.saturn-tech.com: drussell owned process doing -bs Date: Mon, 27 Sep 2004 14:25:09 -0600 (MDT) From: Doug Russell To: John Von Essen In-Reply-To: <20040927141316.L49857-100000@mxb.saturn-tech.com> Message-ID: <20040927142120.K49857-100000@mxb.saturn-tech.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: hacking SCO.... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2004 20:22:35 -0000 Oh, I love replying to my own posts.... :) On Mon, 27 Sep 2004, Doug Russell wrote: > Try adding conv=sync,noerror to your dd line. If most of the data > after the defect(s) can be read, you'll end up with an almost complete > partition which will likely run. You can then fsck and restore from tape. > > for example, > > dd if=/dev/daX of=/dev/daY conv=sync,noerror bs=128k Actually, remove the bs=128k from above (force of habit). When you're trying to recover a disk like this, you want the block size to be single sectors (bs=512, the default) so you get every sector that is readable. It's slower, but it'll get you a more complete copy if it only skips 1 sector on an error instead of 256. :) If you know the defects are only in a certain range, you can get creative with the skip directives to dd and copy most of the disk in larger blocks, and go back and do the bad part one sector at a time (very handy when recovering today's large IDE disks). See the dd(1) manpage for more info. Later......