Multiple copies of files on SD card I use Sony Xperia C1505 which I got three years ago. The phone had been repaired multiple times because od Jack not working and system crash but everything seemed fine since the last repair which had been six months ago.
The problem is that every time I connect phone to pc using USB cable, some files duplicate but I can´t delete any of them (the phone says "Failed to delete file")
All copies of music are working though. Some of photos are "broken files" but when I reload the SD card, everything is fine.
My gallery now has more that 4K of pics instead of 1K. It still ceeps multiplying the files everytime I connect the phone.


I tried restarting phone several times, moved everything from SD card to PC and deleted everything but the problem stil persists...
I am scared to delete the copies because I don´t want to lose any of them
P.S.: I apologize for my english, it is my third language
This looks like the media scanner messed up its database. I recommend to:


clear the media storage (see the middle of this page for details with screenshots):


go to Settings › Apps › All
find "Media Storage" and tap the entry once to open the app details
chose "clear data" (to empty the media scanner's database)

reboot


On device startup, the media scanner will be triggered to run, and should – this time cleanly – build up it's database.

Note: If you've customized ringtones/notification/alarm sounds, you might need to redo that afterwards as the association might be lost.²



² Applications identify those sounds by an ID, not by directory and file name. With the new buildup database, those IDs no longer match.