From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zx42ysrD6zAG for ; Sun, 30 Dec 2012 14:19:39 +0100 (CET) Received: from v4.tansi.org (ns.km33513-03.keymachine.de [87.118.94.3]) by mail.saout.de (Postfix) with ESMTP for ; Sun, 30 Dec 2012 14:19:39 +0100 (CET) Received: from gatewagner.dyndns.org (84-74-164-49.dclient.hispeed.ch [84.74.164.49]) by v4.tansi.org (Postfix) with ESMTPA id 65ECC1404001 for ; Sun, 30 Dec 2012 14:19:39 +0100 (CET) Date: Sun, 30 Dec 2012 14:19:39 +0100 From: Arno Wagner Message-ID: <20121230131938.GA15212@tansi.org> References: <20121227095229.GA9356@tansi.org> <20121228150430.GA17491@tansi.org> <50DDF171.1080807@gmail.com> <96a12d6b77c3f72a240b489e3ceefa4a.squirrel@ssl.verfeiert.org> <50E00BDF.2000109@gmail.com> <20121230105308.GA13288@tansi.org> <50E032CA.1010004@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50E032CA.1010004@gmail.com> Subject: Re: [dm-crypt] Avoiding fsck.ext4 destruction of crypto_luks data List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On Sun, Dec 30, 2012 at 01:25:46PM +0100, Milan Broz wrote: > On 12/30/2012 01:08 PM, Sven Eschenberg wrote: > >> I also found that "wipefs" > >> does not remove matadata 0.90 signatures from md components (located > >> at the end. I still use them because I like kernel-level autodetection > >> and my arrays are small), also added warning about that. > > Usual util-linux maintainer response is "send a patch" :-) > > wipefs must work (e.g. anaconda installer depends on the proper sig. erase) > so it is a bug somewhere. > > Do you have reproducer? (only 0.9 metadata end-of-disk format?) Reproduce with (adjust loop2 and md12 numbers as needed): ------ head -c 1M /dev/zero > t losetup /dev/loop2 t mdadm --create --metadata=0.90 --force -l 1 -n 1 /dev/md12 /dev/loop2 mdadm --stop /dev/md12 mdadm --examine /dev/loop2 --> Raid componend with intact magic wipefs /dev/loop2 mdadm --examine /dev/loop2 --> same as above, RAID signature still there ------ Version (Debian stable): util-linux: 2.17.2-9 Arno -- Arno Wagner, Dr. sc. techn., Dipl. Inform., Email: arno@wagner.name GnuPG: ID: CB5D9718 FP: 12D6 C03B 1B30 33BB 13CF B774 E35C 5FA1 CB5D 9718 ---- One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision. -- Bertrand Russell