[Nexus S Android Development] kaustubhg123:
I am sorry to post it in wrong section. I did not know where to post it.

Yes I did erase USB Storage from settings and then again wipe the ROM and then copy music again. no luck though.

However, I installed app called SDrescan and then turned on logcat and here are the results, if that helps... I think the media scanner is crashing:

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.

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

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

09-11 00:56:48.636 W/MediaScanner(6485): Error opening directory '/storage/sdcard0/.android_secure/', skipping: Permission denied.

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

09-11 00:59:31.070 W/MediaScanner(6514): Error opening directory '/storage/sdcard0/.android_secure/', skipping: Permission denied.

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

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

09-11 00:59:57.152 D/MediaScannerReceiver(6609): action: android.intent.action.MEDIA_MOUNTED path: /storage/sdcard0

09-11 00:59:57.597 W/MediaScanner(6609): Error opening directory '/storage/sdcard0/.android_secure/', skipping: Permission denied.

09-11 01:00:05.390 D/MediaScannerReceiver(6609): action: android.intent.action.MEDIA_MOUNTED path: /storage/sdcard0

09-11 01:00:10.855 W/ActivityManager(2488): Canceling start item Intent { cmp=com.android.providers.media/.MediaScannerService (has extras) } in service ComponentInfo{com.android.providers.media/com.android.providers.media.MediaScannerService}

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

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

09-11 01:00:26.476 D/MediaScannerReceiver(6635): action: android.intent.action.MEDIA_MOUNTED path: /storage/sdcard0

09-11 01:00:26.933 W/MediaScanner(6635): Error opening directory '/storage/sdcard0/.android_secure/', skipping: Permission denied.

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

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

09-11 01:01:18.652 W/MediaScanner(6663): Error opening directory '/storage/sdcard0/.android_secure/', skipping: Permission denied.

09-11 01:01:32.383 W/ActivityManager(2488): Canceling start item Intent { cmp=com.android.providers.media/.MediaScannerService (has extras) } in service ComponentInfo{com.android.providers.media/com.android.providers.media.MediaScannerService}

09-11 01:01:32.383 W/ActivityManager(2488): Scheduling restart of crashed service com.android.providers.media/.MediaScannerService in 137392ms