EXTERNAL_STORAGE doesn't match with "df" output on Samsung Arndale Android.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Android |
Won't Fix
|
Undecided
|
HariGopal |
Bug Description
For the SD MMC test on Samsung Arndale board, with Linaro Android build #386:
https:/
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_
/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 seems locates at "/mnt/media_
root@arndale:/ # busybox ls -ld /mnt/media_
drwxrwx--- 4 media_rw media_rw 4096 Jan 1 00:01 /mnt/media_
root@arndale:/ # busybox ls -ld /storage/sdcard0
drwx------ 2 root root 0 Jan 1 00:00 /storage/sdcard0
root@arndale:/ #
However, data can be successfully written to /storage/sdcard0:
root@arndale:/ # written_
root@arndale:/ # echo $written_message > $EXTERNAL_
root@arndale:/ # echo $?
0
root@arndale:/ # cat $EXTERNAL_
abcdefghijklmn
root@arndale:/ # cd /storage/sdcard0
root@arndale:
sd-mmc-test.txt
root@arndale:
Though file "sd-mmc-test.txt" doesn't exist under "/mnt/media_
root@arndale:
root@arndale:
LOST.DIR
root@arndale:
The output from "mount" are:
root@arndale:/data # mount
rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,
devpts /dev/pts devpts rw,relatime,
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,
tmpfs /mnt/obb tmpfs rw,relatime,
/dev/block/
/dev/block/
/dev/block/
/dev/block/
/dev/block/
root@arndale:/data #
"/mnt/media_
Something wrong in the output of these storage partitions?
#######
For Samsung Arndale Android, this issue reproduced on following images:
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
description: | updated |
Changed in linaro-android: | |
status: | New → Confirmed |
assignee: | nobody → HariGopal (harigopal-gollamudi) |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in linaro-android: | |
status: | Confirmed → Won't Fix |
The issue reproduced with Linaro Android kitkat 14.03 Release Candidate for Galaxy Nexus builds:
https:/ /android- build.linaro. org/builds/ ~linaro- android/ galaxynexus- linaro- 14.03-release/ #build= 1
verified SD-MMC test cases:
https:/ /wiki.linaro. org/Platform/ QA/TestCases/ Android# SD_.2F_ MMC
root@maguro:/ # df
Filesystem Size Used Free Blksize
/dev 346.9M 136.0K 346.8M 4096
/sys/fs/cgroup 346.9M 12.0K 346.9M 4096
/mnt/asec 346.9M 0.0K 346.9M 4096
/mnt/obb 346.9M 0.0K 346.9M 4096
/system 503.9M 359.5M 144.4M 4096
/factory 19.7M 8.1M 11.6M 4096
/cache 425.2M 7.1M 418.1M 4096
/data 13.3G 424.1M 12.9G 4096
/mnt/shell/emulated 13.3G 424.1M 12.9G 4096
root@maguro:/ #
root@maguro:/ # echo $EXTERNAL_STORAGE emulated/ legacy
/storage/
root@maguro:/ #
/storage/ emulated/ legacy is not in the output of "df".
However, data can be successfully written to /storage/ emulated/ legacy
root@maguro:/ # written_ message= "abcdefghijklmn " STORAGE/ sd-mmc- test.txt STORAGE/ sd-mmc- test.txt /storage/ emulated/ legacy # ls
root@maguro:/ # echo $written_message > $EXTERNAL_
root@maguro:/ # echo $?
0
root@maguro:/ # cat $EXTERNAL_
abcdefghijklmn
root@maguro:/ # cd $EXTERNAL_STORAGE
root@maguro:
sd-mmc-test.txt
df output Filesystem does not match with $EXTERNAL_STORAGE Partitions.
Reproduced the issue with:
https:/ /android- build.linaro. org/builds/ ~linaro- android/ galaxynexus- linaro- 14.01-release/ #build= 2 /android- build.linaro. org/builds/ ~linaro- android/ galaxynexus- linaro- 14.02-release/ #build= 11
https:/