[dm-crypt] Fwd: Cannot wipe header on device

Milan Broz gmazyland at gmail.com
Fri Dec 11 16:10:56 CET 2015

On 12/11/2015 03:56 PM, Luís de Sousa wrote:
> On 11 December 2015 at 15:34, Milan Broz <gmazyland at 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
> ========
> This will overwrite data on /dev/sdb1 irrevocably.
> Are you sure? (Type uppercase yes): YES
> Enter passphrase:
> Verify passphrase:
> Cannot wipe header on device /dev/sdb1.
> Command failed with code 5: Cannot wipe header on device /dev/sdb1.

Interesting... probably some hw issue, anyway

could you please send me (not to the list) strace and that command with
debug information? IOW

cryptsetup -y luksFormat /dev/sdb1 --debug
strace cryptsetup -y luksFormat /dev/sdb1

please do not use valuable password, it will be visible in the second output.


More information about the dm-crypt mailing list