From owner-freebsd-questions@FreeBSD.ORG Thu Feb 27 17:53:09 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 EAEC4DBC for ; Thu, 27 Feb 2014 17:53:09 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A6AC11299 for ; Thu, 27 Feb 2014 17:53:09 +0000 (UTC) Received: from [88.217.83.68] (helo=localhost.my.domain) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1WJ58o-0005f7-6l; Thu, 27 Feb 2014 18:53:02 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.7/8.14.3) with ESMTP id s1RHqx5R003232; Thu, 27 Feb 2014 18:53:00 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.7/8.14.3/Submit) id s1RHqx0x003231; Thu, 27 Feb 2014 18:52:59 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 27 Feb 2014 18:52:59 +0100 From: Matthias Apitz To: Polytropon Subject: Re: errors from external USB disk Message-ID: <20140227175258.GA3214@La-Habana> References: <20140226121714.GA1532@tiny-r255948> <20140226145527.3cd8eb4b.freebsd@edvax.de> <20140227115934.GA2006@La-Habana> <20140227150715.e6aa0594.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140227150715.e6aa0594.freebsd@edvax.de> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 88.217.83.68 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 17:53:10 -0000 El día Thursday, February 27, 2014 a las 03:07:15PM +0100, Polytropon escribió: > > While copying big files from the failing disk to another with 'cp -Rp' > > I saw: > > > > Feb 23 18:48:07 La-Habana kernel: (da0:umass-sim0:0:0:0): READ(10). CDB: > > 28 00 01 cf d9 cf 00 00 0e 00 > > Feb 23 18:48:07 La-Habana kernel: (da0:umass-sim0:0:0:0): CAM status: > > CCB request completed with an error > > Feb 23 18:48:07 La-Habana kernel: (da0:umass-sim0:0:0:0): Retrying command > > So it's definitely a reading error here. I was today reading the entire disk with # dd if=/dev/da0 of=/dev/null bs=1m and after around 700 GByte it terminated with: dd: /dev/da0: Input/output error 712870+0 records in 712870+0 records out in /var/log/messages I have: Feb 27 18:01:48 La-Habana kernel: (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 57 05 33 80 00 00 80 00 Feb 27 18:01:48 La-Habana kernel: (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error Feb 27 18:01:48 La-Habana kernel: (da0:umass-sim0:0:0:0): SCSI status: Check Condition Feb 27 18:01:48 La-Habana kernel: (da0:umass-sim0:0:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error) Feb 27 18:01:48 La-Habana kernel: (da0:umass-sim0:0:0:0): Error 5, Unretryable error Is there a way, to map away such bad block? Until today I was thinking that the firmware does this by its own, transparently. > > I dis this already, but it does not show much: > > [...] > > Error Counter logging not supported > > > > Device does not support Self Test logging > > Sorry, I forgot to mention: SMART usually does not work over USB. > Do you have the chance to attach the disk, probably a SATA drive, > to a "native" SATA port and try again? I have only laptops with USB external. Thanks matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards