From owner-freebsd-questions@freebsd.org Mon Apr 16 14:38:21 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70756F880C1 for ; Mon, 16 Apr 2018 14:38:21 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C9E0C72E00 for ; Mon, 16 Apr 2018 14:38:20 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.45.149]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPA (Nemesis) id 0ML81x-1f8MFh1j1N-000L8s; Mon, 16 Apr 2018 16:38:12 +0200 Date: Mon, 16 Apr 2018 16:38:12 +0200 From: Polytropon To: Ernie Luzar Cc: "freebsd-questions@freebsd.org" Subject: Re: ntfs HD with io errors Message-Id: <20180416163812.ed284db3.freebsd@edvax.de> In-Reply-To: <5AD4AE2A.80400@gmail.com> References: <5AD4AE2A.80400@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:L5+A8MKnKNwm0fLiEZj/vtOJHPODe/7/2HItiMNmRYP+wGVSW0o gw4O/Iy3MmGMMd2AUUfX4/FqbOxZZTBC8Sgjbu88kaIAUphIEyBtat39Nap1JyUF0Jik3nz Xi2Zrg+yZ49FGG0o/2k8K6Fdn0SVdxxhMIwXoCXIfEjTNwHQ3BMdJ31ptZBtP183hna+lNL ZuaC3v57MxXRcy8k7/ndQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:MB8cK9ZZcW4=:56+ccqCYAKetetNWm7Kesp rEriZccMn5gtlgcOASFDeUGCsWbEx0IL9OMh3KnL1P+nP7vO7ed2jrOjazEoaxI+CcuqkUcLS +6u6X7NLADZmKa2krx7hAuy8wgdbpowBPDIW5kJyh2qYvvXL7dGqCaZwAton9HeRGM+pf1OHq 0qFsUMxDPtJTfVjm7KUJZ83NWfgY0ZImroZMnIKxHuZRzDackruE5cADkwThCiEXuiYxhTRP+ yPKZd9F7hy4jp3VNwBz9IghYFVIhiEuRTJ6xx71UHJ3kPtIGoVeCbWI6wYKHH+wAsjJ4j9P3L Qyb18XSvdcgO+NjDKqvTlY+EgNMJsEt48LPkhQBILbbDU0dNwe+xgLeMFjLEY8xuu/XM7pj6a Yhz1/A6HcLhIwQbs4XRhVwkh2fNphly083qAPbQMKI/O0P1cjfa+qmPMrgyNBSWKGs6B8b1qy M9IGIvrl3dtBdVftMwmHhAsaJVL1FllCzdK/tFCJ1E9fxS6VoY3i0dJLyHxqdmPu6LdM1lysO 5ybxCuQbY7AOAwUhFqccBo/O/PDcyAwKpdHMMO9TGoFLHjTNSf+jr+1AdNmkg81jgzayzW3Fp u1O5hgp5mwsoI+NmHE1Bs+pEU+g9qdzsvlgEWgW0lmDnd49pJ+kACBghRDIgZDiybKlkHTqRf X9tdlYvxFqqmsNQ02K/XhfnxegoOeemghQ/5tIYFlJdR1kCKRjsaaF77opbq87y5tJAopQxQ9 lVViFoIYdwnJg8kVXRVxB6gOn/5EtvA2W2aPUHbRk0hZ7jhOUod+ZIoYlNQ= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2018 14:38:21 -0000 On Mon, 16 Apr 2018 10:07:38 -0400, Ernie Luzar wrote: > Have a 3TB ntfs HD with i/o errors. > > ntfs-3g does read it, but a ls command of 2 different directories get > error msg about i/o errors and nothing is listed. > > Is there a way to fsck this HD to fix it? This depends on the actual reason for the error message. As it has been suggested, Spinrite can do a great job to "re-activate" broken disks, at least for copying their content once. Also check the tools in "ntfsprogs", one might be able to repair the file system... but I/O errors often indicate hardware failure. Have you tried to get a smartctl report for the disk yet? > There is only 600GB of data on the 3TB HD. Looking for way to copy the > data to a 1TB ufs HD. > What will dump command do with i/o errors? With dump, you can only process UFS file systems (as input); NTFS does not support it. > Can dd command skip over unused space? I think it can. You can also try dd_rescue or ddrescue which can handle I/O errors much better than stock dd, for example by using a dynamically adjusted block size for reading, or performing several attempts on a failed block. > Any other ideas? Find out if you have a hardware error or a filesystem inconsistency. Oh, and give Spinrite a try, it's really a great tool. Why isn't it on my list?! ;-) In worst case, use magicrescue to get at least the data, in case you might not be able to get the sorting information (directory hierarchy and file systems lost). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...