I selected /home/ to be encrypted when I was installing Ubuntu. Now, is it possible to make
locate work with an encrypted partition like this?
It's not really possible to update the database index without being logged in. You should log in and run the updatedb command.
Check your config in
|show 2 more comments|
I both "run locate (updatedb) when I'm logged in", as mentioned above, and I keep my part of the locate database under my encrypted $HOME.
Thus, when my $HOME isn't mounted (and decrypted), it isn't visible.
How about running updatedb when your file system is decrypted and try to match environment variables to read/write it?
After reading the man page, add two variables to your BASH RC file.
Make the directory specified above and add $username to the mlocate group.
Log out and in again to count your user in the mlocate group and get the new environment variables. Now when you run,
are the decrypted files in a locate database now? Or, what did you do to make it work or better?