Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After upgrading from ubuntu 11.04 to 10.10 I cannot access my encrypted home partition anymore. I can login, however all data stays encrypted.

ecryptfs-mount-private 

gives:

ERROR: Encrypted private directory is not setup properly

Any idea how to fix this?

Update

I have several kernels installed (after the upgrade my menu.lst looks like this: http://paste.org/pastebin/view/35591) the problem is the same for all kernels. Booting from 2.6.32-27-generic and

adduser --encrypt-home tes

gives:

Adding user `tes' ...
Adding new group `tes' (1008) ...
Adding new user `tes' (1007) with group `tes' ...
Creating home directory `/home/tes' ...
Setting up encryption ...

************************************************************************
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.
************************************************************************

Error: Your kernel does not support filename encryption
ERROR:  Could not add passphrase to the current keyring
adduser: `/usr/bin/ecryptfs-setup-private -b -u tes' returned error code 1. Exiting.
share|improve this question
    
    
Thanks, however the script doesn't find my home partition –  martin Jun 29 '11 at 20:04
    
If I give the home folder as argument after typing the MOUNT passphrase it says: Error: Your kernel does not support filename encryption –  martin Jun 29 '11 at 20:19
1  
Is there any reason why you're booting the old 2.6.32 kernel? That would be a remnant from Lucid (10.04), and have compatibility issues with the newer user space tools (e.g. here it is telling you that the old kernel's driver doesn't support file name encryption). –  James Henstridge Jun 30 '11 at 2:37
    
@'James Henstridge': I have the same problem with kernel 3.0.2. In the meantime I restored my old menu.lst but it does not change anything. –  martin Jun 30 '11 at 6:20
show 1 more comment

1 Answer 1

Version 11.10 is still in alpha stage - this means development is early and things can be broken.

Encrypted folders and drives is one of these areas - see this ubuntuforums thread.

Rolling Back your System

My advice is to rollback your system back to 11.04 until - at a minimum - the first or second beta of 11.10.

This assumes of course that you took an image backup of your system before the alpha upgrade.

If you didnt, you may have to just reinstall 11.04 from scratch - this could lose all your data on your hard-disk.

Recoverying your Data

If you have a separate /home partition - follow the advice in this AU question.

Perhaps a better way is to backup all of your encrypted data using this AU question. Then do a fresh 11.04 install before copying back the data you have backed up.

share|improve this answer
    
If I install from scratch, will it recognize the encrypted home automatically? –  martin Jun 30 '11 at 10:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.