From owner-freebsd-questions@FreeBSD.ORG Wed Feb 26 13:55:58 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 506C055A for ; Wed, 26 Feb 2014 13:55:58 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 10B001BA1 for ; Wed, 26 Feb 2014 13:55:57 +0000 (UTC) Received: from r56.edvax.de (port-92-195-11-141.dynamic.qsc.de [92.195.11.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 7C9B13CD3C; Wed, 26 Feb 2014 14:55:50 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s1QDtRWB005053; Wed, 26 Feb 2014 14:55:27 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 26 Feb 2014 14:55:27 +0100 From: Polytropon To: Matthias Apitz Subject: Re: errors from external USB disk Message-Id: <20140226145527.3cd8eb4b.freebsd@edvax.de> In-Reply-To: <20140226121714.GA1532@tiny-r255948> References: <20140226121714.GA1532@tiny-r255948> 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 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Feb 2014 13:55:58 -0000 On Wed, 26 Feb 2014 13:17:14 +0100, Matthias Apitz wrote: > Sometimes, after the dump finished, a re-read of the file to get the MD5 > checksum results in errors and I was highly concerned about the integrity > of my dumps on this device. What error? Can you post the error message and the command which caused it? > I bought another 2.5 TB disk and was able to copy all the files (around > 1TB) over, i.e. the device could now be owerwritte while testing. > > What is the best way to run a test on the disk? I'm thinking in > something like reading/writing the block in place for many days > (it's around 1.5 TB). Any ideas? You can start by looking at the S.M.A.R.T. data (sysutils/smartmontools and sysutils/smartcontrol), see "man smartctl" for "smartctl -a". This should help you to identify possible hardware errors. If the disk is connected to USB, data _could_ be "lost" on that way, too. Still it seems that your file system on disk is not damaged (check with fsck -f /dev/da1s1a in umounted state). The backup file should be entirely readable. You can copy or dd it to /dev/null to make sure the entire file is being read. Providing error messages could help to diagnose this further. At the moment I'm just guessing. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...