Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to change my passphrase in LUKS, so I started with typing mount | grep 'on / '. The result was /dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel,data=ordered). So next as usual I typed sudo cryptsetup status fedora-root to get info about partition. But unfortunately I got no result and operation returned 1. sudo cryptsetup --verbose status fedora-root says Command failed with code 22: Invalid argument. Why the behaviour is so strange? What is the way to change LUKS password in that case?

share|improve this question
Perhaps try to run it as root or with sudo, because that's why the error comes: it says you're running it as non-root user. – Risto Salminen Jan 15 '14 at 20:11
Oh I am stupid. I am sorry for my mistake. But after sudo-ing the situation hasn't changed... Thanks for not voting down :P – pt12lol Jan 15 '14 at 20:21
Well, it seems a bit odd to me. I googled for the error, and in all cases I found the error 22 was due to user typed lowercase "yes" instead of uppercase when asked for confirmation, which doesn't seem to be your case. You'd try to run that command with --debug to get the full diagnostic log. – Risto Salminen Jan 15 '14 at 20:56
I haven't been asked about anything. – pt12lol Jan 15 '14 at 20:57
Indeed. Try to run it with --debug. – Risto Salminen Jan 15 '14 at 20:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.