ERROR: Could not mount private ecryptfs directory

Asked by wolfv

After ecryptfs-setup-private I get "fopen: No such file or directory" and "ERROR: Could not mount private ecryptfs directory"

What might be causing the error?

I followed the "How to Remove an Encrypted Private Directory Setup" and then the "Setup Your Encrypted Private Directory" instructions on https://help.ubuntu.com/community/EncryptedPrivateDirectory

The Terminal session is below:

Remove Encrypted Private Directory Setup:
$ sudo -i
$ cd /home/wolf/
$ ecryptfs-umount-private
$ chmod 700 Private
$ rm -rf Private .Private .ecryptfs

Setup Encrypted Private Directory:
$ apt-get install ecryptfs-utils
$ ecryptfs-setup-private
Enter your login passphrase: (for Ubuntu)
Enter your mount passphrase: (for eCryptfs)
Enter your mount passphrase (again):
************************************************************************
YOU SHOULD RECORD YOUR MOUNT PASSPHRASE AND STORE IT IN A SAFE LOCATION.
  ecryptfs-unwrap-passphrase ~/.ecryptfs/wrapped-passphrase
THIS WILL BE REQUIRED IF YOU NEED TO RECOVER YOUR DATA AT A LATER TIME.
************************************************************************
Done configuring.
Testing mount/write/umount/read...
Inserted auth tok with sig [19ed9549e2d29b0f] into the user session keyring
Inserted auth tok with sig [3630ff94344fc1a5] into the user session keyring
fopen: No such file or directory
keyctl_search: Success
Perhaps try the interactive 'ecryptfs-mount-private'
ERROR: Could not mount private ecryptfs directory
$ ls -a private Private .Private
ls: cannot access private: No such file or directory
Private:
. .. Access-Your-Private-Data.desktop README.txt

.Private:
. ..

At this point I started over and got the same error again.
I appreciate you pointing me in the right direction.

Question information

Language:
English Edit question
Status:
Answered
For:
eCryptfs Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ted_Smith (tedsmith28) said :
#1

You say :

$ cd /home/wolf/

followed by :

rm -rf Private .Private .ecryptfs

You have only deleted the users local files. Your problem might be because there are the remains of your previous setup in /home/.ecryptfs/$USER/* ?? (note the higher level, one up from wolf)

Remember that since Ubuntu 10.04 or 09.10 the config files for each users eCryptfs config was moved up a level to a global .ecryptfs folder that contained every users wrapped passphrase file etc beneath it and then there .Private and .ecryptfs directories in the users actual directory.

You probably need to delete that first, if it's there, then try uninstalling and reinstalling ecryptfs-tools.

Ted

Can you help with this problem?

Provide an answer of your own, or ask wolfv for more information if necessary.

To post a message you must log in.