dm-crypt.saout.de archive mirror
 help / color / mirror / Atom feed
From: Fourhundred Thecat <400thecat@gmx.ch>
To: dm-crypt@saout.de
Subject: [dm-crypt] Attaching loopback device failed
Date: Sun, 26 Jul 2020 20:23:10 +0200	[thread overview]
Message-ID: <e1373b3e-99ae-7c28-aef3-8240169db40f@gmx.ch> (raw)

Hello,

I have both luks headerand key in files

# ls
LUKS-HEADER  key

the directory is read-only (chattr -R +i .)

When I try to luksOpen my paretition, I get following error:

  # cryptsetup --allow-discards luksOpen /dev/sda2 sda2 --header
LUKS-HEADER --key-file key
  Attaching loopback device failed (loop device with autoclear flag is
required).
  Device LUKS-HEADER doesn't exist or access denied.

when I change the current directory to read-write (chattr -R -i .) then
it works.

But why does cryptsetup need luks header and key to be writable ?

thanks,

             reply	other threads:[~2020-07-26 18:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-26 18:23 Fourhundred Thecat [this message]
2020-07-26 18:41 ` [dm-crypt] Attaching loopback device failed Milan Broz

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=e1373b3e-99ae-7c28-aef3-8240169db40f@gmx.ch \
    --to=400thecat@gmx.ch \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).