External SSD + APFS formatted + Cryptomator = dangerous

TLDR; DO NOT USE APFS external SSDs with cryptomator - or do some tests first please!


I want to share some observation which might be an Issue with APFS Volumes on external SSDs.

If the Filesystem is APFS (encrypted or NOT) and the volume is an external SSD (I only tested external with more effort and I am using it interally on an encrypted volume without issues) the Data seems to corrupt randomly.

I have two samsung ssds one is exfat formatted and the other one apfs non encrypted. Two differend Models and Hardware generations.

If I put data in the vault which resides on the apfs ssd it tends to corrupt randomly.
Most likely high traffic scenarios (copying lots of data or rsyncing) might be an issue - I could not find any other pattern with my tests.
Long filenames or paths might have a little influence but not really reproducible.

So I put 450GB of different Data (large files, small files, lots of small files etc.) on the ExFat Volume Cryptomator (t5c) - no issue.
If I rsync this to the APFS Cyrptomator volum (t7c) it get’s corrupted partially.

If I do so the other way round (putting the Data on the APFS one and rsyncing to the exfat) the rsync shows issues sind the data which is read is alredy corrupted.

If I sync from t5c (cryptomator, exfat) to the t7 ssd as target (non cryptomator target) it’s also fine.

Hope this saves someone some bad time.

Cheers,

Tom

1 Like