Hi Botao,Thanks for reporting this. Please open a bug so that we can track this issue.
On 20 March 2014 17:28, Botao Sun <botao.sun@linaro.org> wrote:
Here is the output from "mount":
root@arndale:/data # mount
rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/block/mmcblk1p3 /system ext4 rw,relatime,data=ordered 0 0
/dev/block/mmcblk1p5 /cache ext4 rw,nosuid,nodev,noatime,errors=panic,data=ordered 0 0
/dev/block/mmcblk1p6 /data ext4 rw,nosuid,nodev,noatime,errors=panic,data=ordered 0 0
/dev/block/vold/179:39 /mnt/media_rw/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime0
/dev/block/vold/179:39 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=00200
root@arndale:/data #
"/mnt/media_rw/sdcard0" is in output but no "/storage/sdcard0".
On 20 March 2014 22:40, Botao Sun <botao.sun@linaro.org> wrote:
However, data can be successfully written to /storage/sdcard0:Hi Vishal,For the SD MMC test on Samsung Arndale board, the value of EXTERNAL_STORAGE doesn't match with the output of "df":
root@arndale:/ # df
Filesystem Size Used Free Blksize
/dev 1000.6M 164.0K 1000.4M 4096
/mnt/asec 1000.6M 0.0K 1000.6M 4096
/mnt/obb 1000.6M 0.0K 1000.6M 4096
/system 739.9M 371.1M 368.8M 4096
/cache 243.9M 2.0M 241.9M 1024
/data 487.8M 51.4M 436.4M 1024
/mnt/media_rw/sdcard0 5.8G 12.0K 5.8G 4096
/mnt/secure/asec 5.8G 12.0K 5.8G 4096
root@arndale:/ # echo $EXTERNAL_STORAGE
/storage/sdcard0
root@arndale:/ #
"/storage/sdcard0" is not in the output of "df". According to the output, the storage actually locates at "/mnt/media_rw/sdcard0", and I couldn't see there is any symbol link between them:
root@arndale:/ # busybox ls -ld /mnt/media_rw/sdcard0
drwxrwx--- 4 media_rw media_rw 4096 Jan 1 00:01 /mnt/media_rw/sdcard0
root@arndale:/ # busybox ls -ld /storage/sdcard0
drwx------ 2 root root 0 Jan 1 00:00 /storage/sdcard0
root@arndale:/ #
root@arndale:/ # written_message="abcdefghijklmn"
root@arndale:/ # echo $written_message > $EXTERNAL_STORAGE/sd-mmc-test.txt
root@arndale:/ # echo $?
0
root@arndale:/ # cat $EXTERNAL_STORAGE/sd-mmc-test.txt
abcdefghijklmn
root@arndale:/ # cd /storage/sdcard0
root@arndale:/storage/sdcard0 # ls
sd-mmc-test.txt
root@arndale:/storage/sdcard0 #
But file "sd-mmc-test.txt" doesn't exist under "/mnt/media_rw/sdcard0"
root@arndale:/storage/sdcard0 # cd /mnt/media_rw/sdcard0
root@arndale:/mnt/media_rw/sdcard0 # ls
LOST.DIR
root@arndale:/mnt/media_rw/sdcard0 #Something wrong in the output of these storage partitions? The build I'm using is #386:
https://android-build.linaro.org/builds/~linaro-android/linux-linaro-arndale/#build=386
Best RegardsBotao Sun