Ubuntu – What’s the maximum filename length in encrypted ext4 partition

11.10encrypted-partitionencryptionext4filename

I'm using a two-partition setup with ubuntu (one partition for the system, one for my home directories). Until now I had an ext3 formatted home partition, which I'm currently trying to migrate to an encrypted ext4 partition.

However, when copying the files the system is bugging me with errors, complaining that filenames are too long. As far as I could find out using wikipedia filename length is 255 bytes for ext3 and 256 bytes for ext4. So where's the problem, and how can I solve it?

Thanks!

Best Answer

This is a known bug about encryptfs for along time. As you can see this is a huge bug and whishlist. They are struggling with to support this for 12.04. I couldn't see a neat solution but there is a workaround. But those files are missing right now. A PPA is being set up but there are'nt any package right now.

So, I can't see a direct solution for this problem. Maybe you can ask John Johansen for a new kernel which is for Oneric.

Note: I couldn't read all the comments, there is a possibility that I missed something. ie, there could be a solution or this possible solution (Johansen's) could harm your files.

Related Question