From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (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, 8 Feb 2015 11:33:49 +0100 (CET) Received: by mail-wi0-f178.google.com with SMTP id hi2so5773685wib.5 for ; Sun, 08 Feb 2015 02:33:49 -0800 (PST) Message-ID: <54D73B8B.9000905@gmail.com> Date: Sun, 08 Feb 2015 11:33:47 +0100 From: Milan Broz MIME-Version: 1.0 References: <20150205115435.GA4093@tansi.org> <20150205235135.GA21304@tansi.org> <20150206140140.GA16920@dashborg.com> <20150206182729.GB7283@tansi.org> <20150207172747.GA26528@dashborg.com> <20150207180356.GA4982@fritha.org> <20150207231624.GA23872@citd.de> <20150208081954.GA2856@fritha.org> <20150208092334.GA20982@tansi.org> <54D73297.7060904@gmail.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] plain: opening with a wrong password List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "U.Mutlu" , dm-crypt@saout.de On 02/08/2015 11:09 AM, U.Mutlu wrote: >> And now thy mistake with plain IV: >> >> # echo "password" | cryptsetup create -c aes-cbc-plain -s 256 x /dev/sdb >> # blkid -p /dev/mapper/x >> /dev/mapper/x: UUID="f46ba5d8-8c26-4589-ac09-cb0829f2804f" SEC_TYPE="ext2" VERSION="1.0" TYPE="ext3" USAGE="filesystem" >> >> # mount /dev/mapper/x /mnt/tst >> mount: wrong fs type, bad option, bad superblock on /dev/mapper/x, >> missing codepage or helper program, or other error >> ... >> >> DO NOT use plain mode if you are not sure what you are doing. Really. > But isn't it just saying that the mount cannot be done > because something is wrong, ie. wrong/incomplete cipher param was given? For this particular case, yes. But no idea what happen if you try to run fsck or other tool. > What happens if you repeat the whole with the correct params? Depends if there were write IO to that wrongly mapped device and what these writes destroyed. The whole point of this exercise is to note that you must use and remember correct parameters if using plain mode, not only password. > And, should one not use "/dev/sdb1" etc. instead of "/dev/sdb"? No. Partition table is optional and it is not used on this disk. Milan