using syncthing with sharing on sdcard make the sdcard being no more recognized by android

I have a redmi note 9 with MIUI 13.0.3, android 12 SP1A.

each time syncthing is started and the sharing in SDCARD not in pause, after reboot of the phone the sd card is no more recognized.

then I need to connect the sdcard to windows to repair it and then sdcard can be reused with my phone.

sdcard is working great, tested with an app that make write and read, and i use it a whole day with a lot of app (after pausing the sharing in syncthing) without any sdcard problem. I reboot it without any problem.

but each time I start the sharing done in sdcard, after reboot, sdcard is no more recognized.

as if syncthing corrupted my sdcard when doing the syncronization.

I have installed last version of syncthing using .apk on the website (1.27.10) but there is still the same problem.

there are around 1768 file to synchronize (DCIM folder). Is there a file limit somewhere ? currently the sharing is up to date.

Are you able to test with a different SD card? Syncthing can put a lot of strain on storage, and if the SD card is of weak quality or is in not the best condition already, writing a lot of files onto it can possibly make it disappear (i.e. disconnect) from the OS.

It is strange because my sdcard is new, it’s a Philips one so not a Noname one. And i tested it with SD card test pro with all remaining space.

It would be painful to test because I may need to recreate a new share with less photo because I don’t have another 64go SD card.

Isn’t there some log that I could read on syncthing and that could help me to find the problem?

Is syncthing able to work on dcim folder with a lot of file inside the same folder ?

By the way Errors detected on SD card by windows are not on the dcim folder…

I don’t think the Syncthing log is going to help here. If you were to look into the logs, you should probably check the whole system log with logcat.

Yes, why couldn’t it :slight_smile:? Dealing with thousands of files located in a single folder is going to be slow on Android due to how the OS manages file access, but it should still work without errors nevertheless.

I’m looking for a logical explanation because i had the same problem this summer with my own phone (Redmi note 9 pro, miuo 14.0.5, android 12 with 128go sdcard). I had a very large folder for dcim with a lof of file in this folder. I resolved the problem on windows with the disk repair tool and I decided to move a lot of photo inside subfolder and to remove some of them from the synchronization. And the problem never came back. On contrary to the current problem in the last I’m not 100% sure the problem was because of syncthing. But today for sure it is syncthing related.

Maybe your explanation about syncthing doing so much transfert to SD card and stressing the SD card could be the explanation. I’m buying a new one,with higher speed to test. If yes, it is surprising because it should not happen, the SD card should be used at correct speed and if there a too much access android should deal it using buffering and stuff like that. It should not corrupt the SD card :-/

If you do buy a new SD card, I would suggest to go for something from an “endurance” line. Those usually use better chips and can be used the same way as normal solid state drives. The one I’ve been using myself are Sandisk High Endurance and Samsung Pro Endurance, but there are others as well.

2 Likes

Thanks, currently problem is resolved with a new sdcard.