From owner-freebsd-questions@freebsd.org Wed Aug 24 15:54:29 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D3AC2BC4A01 for ; Wed, 24 Aug 2016 15:54:29 +0000 (UTC) (envelope-from kuku@kukulies.org) Received: from kukulies.org (mail.kukulies.org [78.47.239.221]) by mx1.freebsd.org (Postfix) with ESMTP id 9C3071EB6 for ; Wed, 24 Aug 2016 15:54:29 +0000 (UTC) (envelope-from kuku@kukulies.org) Received: from localhost (localhost [127.0.0.1]) by kukulies.org (Postfix) with ESMTP id 2D0424DA409 for ; Wed, 24 Aug 2016 17:46:14 +0200 (CEST) Received: from kukulies.org ([127.0.0.1]) by localhost (kukulies.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05mlqPTJq_0M for ; Wed, 24 Aug 2016 17:46:13 +0200 (CEST) Received: from [172.27.4.215] (unknown [87.79.34.228]) by kukulies.org (Postfix) with ESMTPSA id 5F7024DA408 for ; Wed, 24 Aug 2016 17:46:13 +0200 (CEST) To: "freebsd-questions@freebsd.org" From: "Christoph P.U. Kukulies" Subject: recoverdisk strategy Message-ID: <3f8ff7ed-9a6d-fc78-ae10-fc2fd0baa031@kukulies.org> Date: Wed, 24 Aug 2016 17:46:10 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2016 15:54:29 -0000 Presently I'm again in the situation to have to recover a hard disk that has a Windows NTFS on it, refused to boot Windows 7 and has a lot of I/O-Errors. I connected the disk to my FreeBSD system and now I'm trying to create a dump of it using "recoverdisk". But it gives I/O-errors lots and lots and this quite slowly: (ada2:ahcich0:0:0:0): CAM status: ATA Status Error (ada2:ahcich0:0:0:0): ATA status: 00 () (ada2:ahcich0:0:0:0): RES: 00 00 00 00 00 00 00 00 00 00 00 (ada2:ahcich0:0:0:0): Error 5, Retries exhausted (ada2:ahcich0:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 00 (ada2:ahcich0:0:0:0): CAM status: ATA Status Error (ada2:ahcich0:0:0:0): ATA status: 71 (DRDY DF SERV ERR), error: 04 (ABRT ) (ada2:ahcich0:0:0:0): RES: 71 04 9d 00 32 40 00 00 00 04 00 (ada2:ahcich0:0:0:0): Retrying command (ada2:ahcich0:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 00 (ada2:ahcich0:0:0:0): CAM status: ATA Status Error (ada2:ahcich0:0:0:0): ATA status: 71 (DRDY DF SERV ERR), error: 04 (ABRT ) (ada2:ahcich0:0:0:0): RES: 71 04 9d 00 32 40 00 00 00 04 00 (ada2:ahcich0:0:0:0): Error 5, Retries exhausted (ada2:ahcich0:0:0:0): Synchronize cache failed Setting sysctl kern.cam.ada.retry_count=0 seems to run faster but still it's not gathering any percentage. Still staying at 0.00000 after running some 10 minutes or so. What else could I do? Skipping disk blocks/cylinders? The aim is to produces an image of the disk that contains as much as possible sane sectors with the rest filled wth 0, so that the dump still keeps a mirror of the disk (with holes in it, of course). Once being done, I'd apply a program like "testdisk" that can do a deep search and can try to recover the partition information and the file system (hopefully). -- Christoph