I have an external USB drive that is encrypted with LUKS. I have always let Ubuntu remember the password for me and now I have forgotten the password. The drive is automatically unlocked when I plug it in to my machine, so Ubuntu has the key/password stored somewhere. How can I find the password?
Asked
Active
Viewed 1,676 times
1 Answers
5
This brings up a dialog to let you view/copy the safely stored password:
- open the Gnome "Passwords and Keys" application (a.k.a. "Seahorse")
- in the sidebar on the left, click on "Login" (you may have to provide your login password to unlock this keyring)
- in the vertical ellipsis menu (⋮), make sure you're filtering "Show any"
- your devices will appear; right-click on the device and chose "Properties"
(Just tried this successfully with Gnome 3.38 on Debian/bullseye.)

RichyBK
- 66
-
Works on Linux Fedora (38), too... – Erich Kuester May 20 '23 at 10:32