From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Mon, 14 Dec 2015 20:54:18 +0100 (CET) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a8ZCI-0005iH-Cz for dm-crypt@saout.de; Mon, 14 Dec 2015 20:54:14 +0100 Received: from c-50-158-72-35.hsd1.il.comcast.net ([50.158.72.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Dec 2015 20:54:14 +0100 Received: from rnicholsNOSPAM by c-50-158-72-35.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Dec 2015 20:54:14 +0100 From: Robert Nichols Date: Mon, 14 Dec 2015 13:53:59 -0600 Message-ID: References: <1308232842.375292.1449777297163.JavaMail.yahoo@mail.yahoo.com> <566ADEFA.7090509@gmail.com> <566DCC8B.10401@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [dm-crypt] Fwd: Cannot wipe header on device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On 12/14/2015 02:44 AM, Luís de Sousa wrote: > I understand this is not an issue with cryptsetup, but would anyone > have suggestions on how to proceed? Is there any hope of "fixing" > this, e.g. marking this sector as unusable? > > Thank you, > > Luís > > $ sudo dd if=/dev/zero of=/dev/sdb1 bs=4096 count=1 oflag=sync,direct > dd: error writing ‘/dev/sdb1’: Remote I/O error > 1+0 records in > 0+0 records out > 0 bytes (0 B) copied, 0.00142455 s, 0.0 kB/s There should also have been some system error messages logged which might be informative. When any reasonably modern (last 20 years, or so) drive shows an I/O error on a write operation, it generally means that the drive has run out of spare sectors or has some problem other than media errors. Such a drive is long past the time it should have been replaced. It would be interesting to see the output from "smartctl -A /dev/sdb", if the interface supports it. (Not all USB <=> SATA bridge chips support the necessary commands.) -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.