Menu

#91 EncFS MP 0.11.1 on Win10 fails if the source folder is on OneDrive

1.0
open
nobody
None
2018-10-28
2018-02-28
nello
No

EncFS MP x64 0.11.1 on Win10 1709 16299.248 (64bit) fails if the source folder is on OneDrive.

discussion of this problem first appeared in the thread of a related ticket #83 here

There are two issues - recognising the config file and reading decrypted files on a remounted drive.

Recognising the config file
------duplicate the problem:
Create a new EncFS with the EncFs path pointing to a folder on OneDrive
Mount the volume just created.
Mount fails with the error "No encrypted filesystem found"
------workaround
copy the config file to a local drive and edit the EncFS volume to use this local copy as an external config file.
Now the volume will mount without error.

reading decrypted files on a remounted drive.
------duplicate the problem:
Create a new EncFS with the EncFs path pointing to a folder on OneDrive and enable the external config file pointing to a folder in a local drive
Mount the volume just created.
Add a file to the mounted volume:

  • the file appears to add correctly
  • the EOF shown is appropriately nonzero
  • and encrypted version of the file will appear in the source EncFS folder on onedrive
  • the file can be opened and read as expected by application programs
    --but
  • if the volume is unmounted and then remounted, the file will reappear with EOF shown as "0" and the file can not be read by applications.
  • if the OneDrive folder configured as the EncFS path is copied to a local drive and mounted in EncFS MP via "Open existing EncFS" the volume mounts normally, files appear with appropriate nonzero EOFs and can be decrypted and read as expected without error

additional observations

  1. the failures occur on both OneDrive and OneDrive for Business (the sharepoint version)
  2. sharing the source folder and mapping it to a drive letter and then opening the existing volume using the mapped drive as the EncFS path also fails
  3. Boxcryptor classic seems to be able to remount volumes it creates on Onedrive without getting this error - but the volumes it creates use different nameArg settings than and it is more limited than EncFS MP (for example it doesn't encrypt the filenames) so I am unable to open EncFS volumes using Boxcryptor (even if i rename the config files)

Thank you for your help and all the excellent work you do on this app.
Please let me know if you have questions or need more information

-

Discussion

  • Ray

    Ray - 2018-03-09

    Correct,
    it happended also in my using,
    and if the file move out of the onedrive folder,then move in again ,
    the file will work well ,
    but after the onedrive test the file,it fail again.
    may be some tag added by onedrive.and the file changed

     
  • amac722

    amac722 - 2018-04-13

    OneDrive appears to have a new setting that only downloads files as they are used. It's turned on by default after the Windows update. Fix that worked for me was to just shut off that feature:

    Right click on the OneDrive cloud icon and change the following setting:

    Settings->Settings Tab->Uncheck box "Save space and download files as you use them"

    After I made that change, I noticed all the file icons within the OneDrive folders went back to how they were before the Windows update and now EncFS MP works fine just like it did before. Obviously this fix won't help you if you want to take advantage of that new OneDrive feature to only download files on demand as you use them, but for me I just wanted things to stay the same and unchecking that setting box in OneDrive put everything back so that EncFS MP still works.

     

    Last edit: amac722 2018-04-13
  • nello

    nello - 2018-10-28

    this seems to be fixed very elegantly in the latest 0.99 version

    everything works even if the encrypted files (on OneDrive) are not currently on the local drive - they get requested in the background and downloaded as needed (in the same way this feature works for unencrypted files).

    Brilliant

     

Log in to post a comment.