Dear All,
The issue is solved.
how to mount all storage partitons correctly in android?
***************************************************************
1.get into android shell using adb
$adb shell
$su
2.mount the system partition with read/write permission
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
3.change the permission of etc
$chmod 777 /etc
4.pull the vold.fstab to the host machine
$adb pull /etc/vold.fstab
5.edit vold.fstab to do the mounting correctly
dev_mount sdcard /mnt/sdcard auto /devices/platform/mxsdhci.2/mmc_host/mmc0
dev_mount extsd /mnt/sdcard/extsd auto /devices/platform/mxsdhci.0/mmc_host/mmc1
dev_mount udisk /mnt/sdcard/udisk auto /devices/platform/fsl-ehci.1/usb
Now I can access the internal memory, external sdcard and usb storage from my device.
Thank You
Mats