Score:0

Where is stored recovery key for encrypted partition recovery key

us flag

during setup of 21.10 I chose to use LVM Encrypted file system. I set recovery password and setup show where will be stored on the disk. The path look quite simple. Now I want to backup stored data but cannot find this directory. Please point me default location of recovery data

Score:1
cn flag

If you have used an Ubuntu Live USB for the install and if you hadn't changed the default location, the recovery.key is gone I am afraid. The default location points to the /home of the live USB which is not persistent -- i.e., gets cleaned after poweroff.

enter image description here

us flag
Is there a chance to regenerate this recovery key now when I have full access to the system ?
Halil  ŞEN avatar
cn flag
@AdamMierzwiak I strongly suspect that you cannot get the key as a plain text since the comparison is done after hashing, albeit there is nothing special about the default recovery.key file (and the password itself) automatically generated by ubuntu -- except that the password is made of 48 random digits and the recovery.key file is a plain-text file that only contains this 48-digit password. With that said, you can remove the lost key and generate/add a new recovery key yourself and save it in a text file following [this](https://askubuntu.com/a/1334372/119863)
us flag
So to get the key during installation process do we need additional usb memory (e.g. pendrive)? When I try to save it on mounted installation medium I see that most locations are read-only
Halil  ŞEN avatar
cn flag
@AdamMierzwiak you need to make your Ubuntu installation disk "persistent" (i.e., it needs to retain the information after the installation). Here is a link https://www.howtogeek.com/14912/create-a-persistent-bootable-ubuntu-usb-flash-drive/ (I skimmed over it but didn't try this myself, if you google "persistent ubuntu installation usb" you can find more sources).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.