Every time I mount an SD card containing a substantial amount of music (approx. 500 MB) my phone slows and eventually becomes completely unresponsive. After running top I discovered that the issue is caused by the mediaserver process which takes about 98% of the CPU.
Normally I would wait for the process to complete but the device seems to restart before mediaserver finishes and this results in the phone just starting mediaserver again at the next boot (as soon as the SD card finishes mounting).
Any ideas would be appreciated. Thanks.