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.
and then I index the files in
Now I have a complete index of
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?
You may also want to add updatedb to user's crontab. First run:
And add the following line: