Skip to content

Data corruption after backup EncFS directory #672

Open
@ShredRum

Description

@ShredRum

Data corruption after backup EncFS directory

Description:

I am experiencing data corruption issues after performing a backup of my EncFS directory. Here are the details of the issue:

  • During mounting, I encounter the following error for many files:
    WARNING MAC comparison failure in block 0
    As a result, the files are not readable at all.
  • When using the --forcedecode option, some files can be partially read, but I receive numerous errors related to different block numbers during access attempts.

Steps to Reproduce:

  1. Create an EncFS encrypted folder using the following configuration:
    • Cipher algorithm: ssl/aes
    • Key size: 256 bits
    • Block size: 1024 bytes
    • Filename encoding: nameio/block (with IV chaining enabled)
    • KDF: PBKDF2 with 100,000 iterations
  2. Copy the encrypted directory to another location as a backup.
  3. Attempt to access the backed-up files or restore them to a new location.

Observed Behavior:

  • Files in the backed-up directory are severely corrupted.
  • Many files appear to have a fixed size of 100 bytes in the mounted view.
  • Attempts to open the files result in readable headers, but the rest of the content is unreadable or contains junk data.
  • Directory names and structures appear intact.

Troubleshooting Attempts:

  1. Verified the original .encfs6.xml is intact and matches the backed-up directory.
  2. Attempted recovery using the same password and EncFS version but could not restore the files.

Request:

Could you help determine if:

  • This is a known issue or configuration error.
  • There are any recommended recovery steps for partially corrupted files.

Thank you for your help!

Example of reading a file with the --forcedecode argument
Screenshot 2024-11-29 220713

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions