From owner-freebsd-chat@FreeBSD.ORG Sat Apr 5 00:47:33 2008 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 858FC1065674 for ; Sat, 5 Apr 2008 00:47:33 +0000 (UTC) (envelope-from so14k@valentine.liquidneon.com) Received: from valentine.liquidneon.com (valentine.liquidneon.com [216.87.78.132]) by mx1.freebsd.org (Postfix) with ESMTP id 65A9D8FC2E for ; Sat, 5 Apr 2008 00:47:33 +0000 (UTC) (envelope-from so14k@valentine.liquidneon.com) Received: by valentine.liquidneon.com (Postfix, from userid 1018) id C1DAB8FD80; Fri, 4 Apr 2008 18:30:26 -0600 (MDT) Date: Fri, 4 Apr 2008 18:30:26 -0600 From: Brad Davis To: d@delphij.net Message-ID: <20080405003026.GE67968@valentine.liquidneon.com> References: <47F6C1BD.1090806@delphij.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47F6C1BD.1090806@delphij.net> User-Agent: Mutt/1.4.2.3i Cc: FreeBSD-Chat mailing list Subject: Re: Program to copy data from a bad disk? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2008 00:47:33 -0000 On Fri, Apr 04, 2008 at 05:03:09PM -0700, LI Xin wrote: > Hi, > > Recently my hard drive goes bad again, which has a lot of bad sectors > for unknown reasons. I am looking for some software that is capable of > doing a sector-to-sector copy of the hard drive. > > I have tried dd but with conv=noerror,sync it would just fill 0's for > the whole block size (say, in order to get best speed you will want > bs=128k or even larger, but that means that you will lose data when 1 > of these 256 sectors is bad). Is there any program that is smarter > which do a sector-to-sector copy for these failed blocks and use larger > transfer buffer for others? Hi Xin, I recently found sysutils/dd_rescue and sysutils/ddrescue. I have never tried them, but they are supposed to do what you want. Regards, Brad Davis