All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael Kjörling" <michael@kjorling.se>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] cryptsetup versions: cryptsetup 2.3.4 vs. cryptsetup 2.1.0 - thought I had data corruption!?!
Date: Wed, 25 Nov 2020 18:01:20 +0000	[thread overview]
Message-ID: <d3e5bed2-b692-4d4f-a67b-89af9a0be839@localhost> (raw)
In-Reply-To: <CAJN12jkuOZfK2ag53+tD_K0S=CZ2LiE4Qx28cg6q3shGSKMiGg@mail.gmail.com>

On 25 Nov 2020 18:30 +0100, from mjoerg@gmail.com (Martin Jørgensen):
> I tried to look in version history but am not into the details of the
> difference in crypt-setup versions. Can anyone please tell why I got/get
> this error using 2.1.0 and not with 2.3.4?
> 
> "mount: wrong fs type, bad option, bad superblock on /dev/mapper/....,
> missing codepage or helper program, or other error

_If_ you're able to unlock the container using both versions, _but_
with one you are able to mount the file system within the container
and with the other you are unable to do so, then I would suggest
comparing the output of `file -s /dev/mapper/whatever` for the two
cases after unlocking. You could also try `cryptsetup luksDump
--dump-master-key` for each version of cryptsetup and comparing the
output, but be sure that you understand the consequences of the master
key being potentially compromised before you do so.

I'm sure someone will correct me if I'm wrong about this, but I am
_fairly_ certain that there is nothing in the luksOpen/luksClose code
that will change anything in the LUKS header, so something else must
be going on in your case.

Are you able to reproduce the behavior with a brand new container?
(You can use a plain file to hold a LUKS container.) If so, please
list the exact commands, in order, and the exact software versions
(kernel, cryptsetup, libcryptsetup) involved.

-- 
Michael Kjörling • https://michael.kjorling.se • michael@kjorling.se
 “Remember when, on the Internet, nobody cared that you were a dog?”

  reply	other threads:[~2020-11-25 18:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25 17:30 [dm-crypt] cryptsetup versions: cryptsetup 2.3.4 vs. cryptsetup 2.1.0 - thought I had data corruption!?! Martin Jørgensen
2020-11-25 18:01 ` Michael Kjörling [this message]
2020-11-25 18:34   ` Milan Broz
2020-11-25 20:08     ` Martin Jørgensen
2020-11-26  9:32     ` Martin Jørgensen
2020-12-16  0:06       ` Martin Jørgensen
2020-12-16  0:06         ` Martin Jørgensen
2020-12-22 13:21         ` Milan Broz
2020-12-22 22:03           ` Arno Wagner

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=d3e5bed2-b692-4d4f-a67b-89af9a0be839@localhost \
    --to=michael@kjorling.se \
    --cc=dm-crypt@saout.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.