Re: Can't open luks after switching distros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9 Jun 2018 16:35 -0400, from doark@xxxxxxxx (David Niklas):
> My computer broke and I am now regressed to a 32 bit p4.
> The problem is that my passphrase is said to be incorrect

The first thing I'd do is to make absolutely certain that the
passphrase you're entering is being given to cryptsetup in the same
way as it was before. For example, you'd want to verify that the
keyboard layout and locale encoding (UTF-8 vs US-ASCII vs ISO-8859-1
vs whatever) are exactly the same as on the system where you most
recently were able to open the container. If you don't know what those
settings were, this may take a bit of fiddling around. Running
"locale" and "locale -a" would be a good start, as would verifying the
keyboard layout; if Devuan is like Debian in this regard, start at
/etc/default/keyboard and /etc/default/console-setup.

For the future, once you've (hopefully) sorted things out, consider
adding a second keyslot with a long passphrase that is strictly
US-ASCII, strictly for recovery purposes, and saving a LUKS header
backup somewhere other than within the container (obviously). You
could even use a greatly increased iteration count for that one. That
way, if all else fails, you can restore the header backup, type the
passphrase into a text editor (so you can see what you're typing) and
paste the passphrase into the prompt.

Consider making a LUKS header backup now, before doing any further
testing, if you don't have sufficient spare disk to make a copy of the
entire encrypted container (which would be even better). That way, if
you mess up further, at least you'll be able to get back to where you
are now.

-- 
Michael Kjörling • https://michael.kjorling.se • michael@xxxxxxxxxxx
  “The most dangerous thought that you can have as a creative person
              is to think you know what you’re doing.” (Bret Victor)
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
https://www.saout.de/mailman/listinfo/dm-crypt




[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux