Other GELI Recovery help

Seeking help or advice. Sorry if this repeats what already has been posted
I had a GELI partition with UFS named like /dev/aacd0s2a.eli and I wanted to label it with glabel(8).
glabel -l JAILROOT aacd0s2a
so that I can call it by name /dev/label/JAILROOT when GELI is inactive and /dev/label/JAILROOT when GELI is active.

After I did:
glabel -l JAILROOT aacd0s2a

I tried to open it by either
geli attach -k 0/aacd0s2a.lock label/JAILROOT
or
geli attach -k 0/aacd0s2a.lock aacd0s2a

I get the message:
Code:
geli: Cannot read metadata from aacd0s2a: Invalid argument.
I figured I have destroyed the GELI metadata section. :(
I don't have them in /var/backups either to try geli restore.

Am I out of options and the data are gone?

Thank you
 
Quick study of the last disk sectors and replicating test on a different partition showed that indeed GELI metadata have been destroyed. Looks like nothing can be done, unless GELI happens to store them somewhere else on disk
 
It might be a long shot but if you are lucky enough to have an off-system backup, geli(8) mentions when a provider is encrypted a backup of the metadata is made in /var/backups/<prov>.eli.
 
Back
Top