[Nexus S Q&A, Help & Troubleshooting] kaustubhg123:
Hello,

I had this question posted in development forum (which is wrong, sorry for that.) and got no concrete solution.

I've searched a lot on the Internet regarding this issue, but could not find any fixed solution to it.

I've tried installing multiple jelly bean ROMs including Androxide and CNA and even stock ROM.

Any music app (except power amp) including jetaudio, default, playerpro, win amp can not see any of my music stored in /sdcard/media/Songs. The default gallery app also can not see any images including ones in /sdcard/DCIM/Camera.

I did a cut paste on PC and then again adb pushed all files to /sdcard/DCIM/Camera and /sdcard/Music and then I could see everything again. Again when I installed new ROM (CNA 3.5) and everything is gone again. I tried adb pushing again but it does not work. I tried clearing cache partition. I tried clearing data for music app, gallery, media storage. I have tried installing and running media scan app from play store. I can not wipe data repeatedly.

I am so frustrated because of the issue. I can see all music files are there on sdcard using file manager. I also verified that there are no .nomedia files anywhere. I see that sdcard is mounted on /mnt/sdcard0 instead of old /mnt/sdcard if that has anything to do with it.

Please help if anyone else has faced this issue and know concrete solution about it. I've searched a lot but could not find solution. Please help.

I can not re-copy music every time I install a new ROM.

I did try to find whats the error using catlog, and here's what I found when media was being scanned:

09-10 22:39:48.599 W/ActivityManager(290): Scheduling restart of crashed service com.android.providers.media/.MediaScannerService in 35012ms

09-10 22:40:40.039 I/ActivityManager(290): Start proc android.process.media for service com.android.providers.media/.MediaScannerService: pid=1545 uid=10011 gids={1015, 1023, 1024, 1028, 2001, 3003, 3007}

09-10 22:40:48.343 W/ActivityManager(290): Scheduling restart of crashed service com.android.providers.media/.MediaScannerService in 140048ms

09-10 22:43:26.824 I/ActivityManager(290): Start proc android.process.media for service com.android.providers.media/.MediaScannerService: pid=1661 uid=10011 gids={1015, 1023, 1024, 1028, 2001, 3003, 3007}

09-10 22:43:43.160 W/ActivityManager(290): Scheduling restart of crashed service com.android.providers.media/.MediaScannerService in 560192ms

09-11 00:54:34.254 I/ActivityManager(2488): Start proc android.process.media for broadcast com.android.providers.media/.MediaScannerReceiver: pid=6278 uid=10011 gids={1015, 1023, 1024, 1028, 2001, 3003, 3007}

09-11 00:54:34.547 D/MediaScannerReceiver(6278): action: android.intent.action.MEDIA_MOUNTED path: /storage/sdcard0

09-11 00:54:34.902 W/MediaScanner(6278): Error opening directory '/storage/sdcard0/.android_secure/', skipping: Permission denied.

09-11 00:54:48.808 W/ActivityManager(2488): Scheduling restart of crashed service com.android.providers.media/.MediaScannerService in 28526ms

09-11 00:55:17.414 I/ActivityManager(2488): Start proc android.process.media for service com.android.providers.media/.MediaScannerService: pid=6417 uid=10011 gids={1015, 1023, 1024, 1028, 2001, 3003, 3007}

09-11 00:55:19.304 W/MediaScanner(6417): Error opening directory '/storage/sdcard0/.android_secure/', skipping: Permission denied.

09-11 00:55:42.004 W/ActivityManager(2488): Scheduling restart of crashed service com.android.providers.media/.MediaScannerService in 114104ms

09-11 00:55:52.418 I/ActivityManager(2488): Start proc android.process.media for broadcast com.android.providers.media/.MediaScannerReceiver: pid=6456 uid=10011 gids={1015, 1023, 1024, 1028, 2001, 3003, 3007}

09-11 00:55:52.789 D/MediaScannerReceiver(6456): action: android.intent.action.MEDIA_MOUNTED path: /storage/sdcard0

09-11 00:55:53.390 W/MediaScanner(6456): Error opening directory '/storage/sdcard0/.android_secure/', skipping: Permission denied.

Need Help.