From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Sun, 13 Dec 2015 20:52:46 +0100 (CET) Received: by wmnn186 with SMTP id n186so95379644wmn.0 for ; Sun, 13 Dec 2015 11:52:45 -0800 (PST) References: <1308232842.375292.1449777297163.JavaMail.yahoo@mail.yahoo.com> <566ADEFA.7090509@gmail.com> From: Milan Broz Message-ID: <566DCC8B.10401@gmail.com> Date: Sun, 13 Dec 2015 20:52:43 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: [dm-crypt] Fwd: Cannot wipe header on device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Lu=c3=ads_de_Sousa?= Cc: dm-crypt@saout.de On 12/11/2015 03:56 PM, Lu=EDs de Sousa wrote: > On 11 December 2015 at 15:34, Milan Broz wrote: >> >> Could you please try to add to dd command: oflag=3Ddirect and try it ag= ain? >> >=20 > Same result (see below). Thanks for helping in any case. >=20 > $ sudo dd if=3D/dev/zero of=3D/dev/sdb1 bs=3D4096 count=3D2500 conv=3Dsyn= c oflag=3Ddirect > 2500+0 records in > 2500+0 records out > 10240000 bytes (10 MB) copied, 1.59072 s, 6.4 MB/s >=20 > $ sudo cryptsetup -y -v luksFormat /dev/sdb1 ... strace shows that it is really IO error reported on write: open("/dev/sdb1", O_RDWR|O_EXCL|O_SYNC|O_DIRECT) =3D 6 ... write(6, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"= ..., 4096) =3D -1 EREMOTEIO (Remote I/O error) IMHO this operation should print error as well: dd if=3D/dev/zero of=3D/dev/sdb1 bs=3D4096 count=3D1 oflag=3Dsync,direct (note sync is oflag, not conv=3D...) Anyway, this is not error in cryptsetup... Milan