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 |
|||||||||||
|
|
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? |
|||||
|
/homeis a virtual file system (ecryptfs). It is "mounted" as an accessible partition when you log in. Check your /etc/updatedb.conf and a) remove ecryptfs from ignored file systems (PRUNEFS) b) change to PRUNE_BIND_MOUNTS="no" – m33lky Feb 26 '11 at 3:56sudo updatedbto index new files. – m33lky Feb 26 '11 at 4:03