DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: "Luís de Sousa" <luis.a.de.sousa@gmail.com>
Cc: dm-crypt@saout.de
Subject: Re: [dm-crypt] Fwd: Cannot wipe header on device
Date: Sun, 13 Dec 2015 20:52:43 +0100	[thread overview]
Message-ID: <566DCC8B.10401@gmail.com> (raw)
In-Reply-To: <CAEtdG7vAYRf=t==w7vJ-gvfAaS85mT66fTOSKAhJeQfyefs6WQ@mail.gmail.com>

On 12/11/2015 03:56 PM, Luís de Sousa wrote:
> On 11 December 2015 at 15:34, Milan Broz <gmazyland@gmail.com> wrote:
>>
>> Could you please try to add to dd command: oflag=direct  and try it again?
>>
> 
> Same result (see below). Thanks for helping in any case.
> 
> $ sudo dd if=/dev/zero of=/dev/sdb1 bs=4096 count=2500 conv=sync oflag=direct
> 2500+0 records in
> 2500+0 records out
> 10240000 bytes (10 MB) copied, 1.59072 s, 6.4 MB/s
> 
> $ 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) = 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) = -1 EREMOTEIO (Remote I/O error)


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

  parent reply	other threads:[~2015-12-13 19:52 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-10 10:18 [dm-crypt] Cannot wipe header on device Luís de Sousa
2015-12-10 13:35 ` Michael Kjörling
2015-12-10 16:49 ` H McCurdy
2015-12-10 17:24   ` Luís de Sousa
2015-12-10 17:37     ` H McCurdy
2015-12-10 18:25       ` Luís de Sousa
2015-12-10 19:54         ` H McCurdy
2015-12-11  4:33           ` Arno Wagner
     [not found]           ` <CAEtdG7sSJQC79cAqCGcMwREH_nTb8NakiXSfCr3+vv3vyo0w+A@mail.gmail.com>
2015-12-11 14:09             ` [dm-crypt] Fwd: " Luís de Sousa
2015-12-11 14:34               ` Milan Broz
2015-12-11 14:56                 ` Luís de Sousa
2015-12-11 15:10                   ` Milan Broz
2015-12-13 19:52                   ` Milan Broz [this message]
2015-12-14  8:44                     ` Luís de Sousa
2015-12-14 14:46                       ` Sven Eschenberg
2015-12-14 19:53                       ` Robert Nichols
2015-12-14 20:39                         ` Arno Wagner
2015-12-15  8:53                       ` Luís de Sousa
2015-12-15  9:37                         ` Milan Broz
2015-12-15 17:53                         ` Robert Nichols
2015-12-16  4:06                         ` David Christensen
2015-12-10 19:06 ` [dm-crypt] " David Christensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=566DCC8B.10401@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=luis.a.de.sousa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox