From owner-freebsd-questions@freebsd.org Sat Apr 15 12:45:08 2017 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 7C478D3EEA1 for ; Sat, 15 Apr 2017 12:45:08 +0000 (UTC) (envelope-from freebsd01@dgmm.net) Received: from outbound-queue-adx-2.mail.thdo.gradwell.net (outbound-queue-adx-2.mail.thdo.gradwell.net [212.11.71.247]) by mx1.freebsd.org (Postfix) with ESMTP id 480E81FD1 for ; Sat, 15 Apr 2017 12:45:07 +0000 (UTC) (envelope-from freebsd01@dgmm.net) Received: from outbound-edge-adx-2.mail.thdo.gradwell.net (outbound-edge-adx-2.mail.thdo.gradwell.net [212.11.71.231]) by outbound-queue-adx-2.mail.thdo.gradwell.net (Postfix) with ESMTP id D466B21E38 for ; Sat, 15 Apr 2017 13:44:18 +0100 (BST) Received: from cpc89374-jarr11-2-0-cust348.16-2.cable.virginm.net (HELO amd.asgard.uk) (82.13.141.93) (smtp-auth username fbsd%pop3.dgmm.net, mechanism plain) by outbound-edge-adx-2.mail.thdo.gradwell.net (qpsmtpd/0.83) with ESMTPA; Sat, 15 Apr 2017 13:44:18 +0100 From: Dave To: freebsd-questions@freebsd.org Subject: Re: hopefully simple query regarding dd Date: Sat, 15 Apr 2017 13:44:17 +0100 Message-ID: <124362403.VE01vY07d0@amd.asgard.uk> User-Agent: KMail/4.14.10 (FreeBSD/10.3-RELEASE-p18; KDE/4.14.30; amd64; ; ) In-Reply-To: <33df8ac0-3d45-2945-fd4f-f4068ce60f8c@zyxst.net> References: <7ed0944d-56d0-fc10-629b-b90067f48651@zyxst.net> <20170413103601.ae71e4fa9a2b5d9b024a71fc@sohara.org> <33df8ac0-3d45-2945-fd4f-f4068ce60f8c@zyxst.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Gradwell-MongoId: 58f215a2.11317-23eb-2 X-Gradwell-Auth-Method: mailbox X-Gradwell-Auth-Credentials: fbsd@pop3.dgmm.net X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2017 12:45:08 -0000 On Thursday 13 April 2017 11:08:23 tech-lists wrote: > 5 Reallocated_Sector_Ct PO--CK 183 183 140 - 143 > 197 Current_Pending_Sector -O--CK 001 001 000 - 65216 > 198 Offline_Uncorrectable ----CK 100 253 000 - 0 > 196 Reallocated_Event_Count -O--CK 196 196 000 - 4 Reallocated sectors are sectors where the HDD firmware was unable to reliably read the data repeatedly and so has used the one or more successful reads to move the data to a spare track. Pending sectors are sectors where there has been one or more unsuccessful reads followed by a successful read. This will remain pending unless and until the HDD gets a successful first time read, in which case it goes back to ok, or fails again and it gets remapped. Basically, it all means the HDD is almost certainly on it's way out and should be replaced if you value your data. For testing an HDD, personally I'd use either the manufacturers diags tools or HDAT2 (booted from FreeDOS). Both Seagate and WD have DOS bootable tools on their websites, Seatools (Seagate) and Dlgdiags (WD). Others probably do too, but HDAT2 is universal and also does various surface scans including read/write/verify which will "refresh" your data with error checking, unlike the more dangerous dd. HDAT2 may require you to manually switch the HDD mode to IDE from AHCI because on some BIOS it fails to perform the switch itself. Another option to HDAT2 is MHDD. Similar features but less menu oriented like HDAT2.