From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from v1.tansi.org (mail.tansi.org [84.19.178.47]) by mail.server123.net (Postfix) with ESMTP for ; Sat, 23 Dec 2017 15:01:30 +0100 (CET) Received: from gatewagner.dyndns.org (unknown [212.51.156.222]) by v1.tansi.org (Postfix) with ESMTPA id C119A1400F5 for ; Sat, 23 Dec 2017 15:00:41 +0100 (CET) Date: Sat, 23 Dec 2017 15:01:29 +0100 From: Arno Wagner Message-ID: <20171223140129.GA22430@tansi.org> References: <20171223104922.ED6BD124CDBC@shakotay.alphanet.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171223104922.ED6BD124CDBC@shakotay.alphanet.ch> Subject: Re: [dm-crypt] mistake with luksFormat List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi Amel, I would say your disk died while you were doing the overwrite. That is assuming nothing the OS uses was on sdb. There is no logout-timer in ssh and anyways, it would not freeze. Regards, Arno On Sat, Dec 23, 2017 at 11:49:22 CET, A. Kapetanovic wrote: > Hi everybody, > > I did something wrong, can please someone help me ? I followed these > instructions to encrypt a internal HDD : > > https://www.cyberciti.biz/hardware/howto-linux-hard-disk-encryption-with-luks-cryptsetup-command/ > > Unfortunately I did > > cryptsetup -y -v luksFormat /dev/sdb > > and not > > cryptsetup -y -v luksFormat /dev/sdb1 > > After that I used fdisk to create sdb1 and did > > cryptsetup -y -v luksFormat /dev/sdb1 > cryptsetup luksOpen /dev/sdb1 prod > > and > > pv -tpreb /dev/zero | dd of=/dev/mapper/prod bs=128M > > all this I did through ssh > > but : > > 1. After a time my shell was frozen. Perhaps has ssh a timer ? > 2. My HDD did repetitive noises several hours (now that has stopped), even > after a reboot. > > So, my question please : have I to do something to erase what I did with > > cryptsetup -y -v luksFormat /dev/sdb > > And what is it ? > > Have I to do something more, or were the noises of the HDD simple my > > pv -tpreb /dev/zero | dd of=/dev/mapper/prod bs=128M > > command, even if > > ps -a | grep dd > > didn't display anything ? > > > Thanks, best regards, > > Amel :) > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt -- 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 ---- A good decision is based on knowledge and not on numbers. -- Plato If it's in the news, don't worry about it. The very definition of "news" is "something that hardly ever happens." -- Bruce Schneier