From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mps1.wohnheimg.uni-frankfurt.de (mps1.wohnheimg.uni-frankfurt.de [141.2.118.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Mon, 14 Dec 2015 16:20:10 +0100 (CET) Received: from p4fe8591c.dip0.t-ipconnect.de ([79.232.89.28] helo=[192.168.0.11]) (Authed sender Sven 'DarKRaveR' Eschenberg) by mps1.wohnheimg.uni-frankfurt.de via ESMTPSA (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) (envelope-from ) id 1a8UOH-0004bJ-Er for dm-crypt@saout.de; Mon, 14 Dec 2015 15:46:17 +0100 References: <1308232842.375292.1449777297163.JavaMail.yahoo@mail.yahoo.com> <566ADEFA.7090509@gmail.com> <566DCC8B.10401@gmail.com> From: Sven Eschenberg Message-ID: <566ED653.2030109@whgl.uni-frankfurt.de> Date: Mon, 14 Dec 2015 15:46:43 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit 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 Hi there, Personally I am wondering what happens if you add seek=1 to the dd command line (namely writing the second 4k block) but keeping sync and direct flags. >> dd if=/dev/zero of=/dev/sdb1 bs=4096 count=1 oflag=sync,direct seek=1 Regards -Sven Am 14.12.2015 um 09:44 schrieb Luís de Sousa: > On 13 December 2015 at 20:52, Milan Broz wrote: >> >> IMHO this operation should print error as well: >> >> dd if=/dev/zero of=/dev/sdb1 bs=4096 count=1 oflag=sync,direct >> >> (note sync is oflag, not conv=...) >> >> Anyway, this is not error in cryptsetup... >> >> Milan > > Hi Milan, thank you for the reply. You can see the output below, there > is an error indeed. > > 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 > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt >