Re: Assistance required
Michael Kjörling <[email protected]>
| Newsgroups | dev.linux.lists.cryptsetup |
|---|---|
| Message-ID | <[email protected]> |
On 31 Jan 2023 10:58 +0100, from [email protected] (Sascha Sander): > But unfornutaley I need to know the previous passphrase to add a new one. > Is there *any* possibility to access the data? Unfortunately, the general answer to this is no, there is not. If it was possible to access the data inside a LUKS container without knowing a valid passphrase for the container, then that would completely undermine the entire purpose of having full disk encryption in the first place; so anything like that would be a serious design flaw. I'm sorry. Your best bet would be a backup that you are able to access. Is it correct to assume that such backups do not exist in this case? If you remember _something_ about the passphrase, then you might be able to use that knowledge to set up a password cracker, but even so, it would take a long time for it to work through even a small number of possibilities with cryptsetup's default settings (which IIRC is 1-2 seconds' worth of key derivation iteration count on the system where the LUKS container is created). This is helpful mostly when you remember _almost_ all of a passphrase. _IF_ the container was still open on a system where you have root privileges, then there exist ways to set up a key slot with a known passphrase even if you do not know any current passphrase. It doesn't sound like this is the case in your situation, but on the odd chance that it is, DO NOTHING THAT WOULD CAUSE THE CONTAINER TO BE CLOSED. Do not "luksClose" it, do not reboot the system, do not unplug the underlying storage device, or anything else like that. That situation is salvageable. -- Michael Kjörling 🏡 https://michael.kjorling.se “Remember when, on the Internet, nobody cared that you were a dog?”